Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/common Initialise permissions mask to a sensible va...



details:   https://anonhg.NetBSD.org/src/rev/5a059f89c32b
branches:  trunk
changeset: 778440:5a059f89c32b
user:      njoly <njoly%NetBSD.org@localhost>
date:      Mon Mar 26 15:10:26 2012 +0000

description:
Initialise permissions mask to a sensible value (0755).
While here convert leading spaces to tabs.

diffstat:

 tests/fs/common/fstest_msdosfs.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 0a4875c0e1f5 -r 5a059f89c32b tests/fs/common/fstest_msdosfs.c
--- a/tests/fs/common/fstest_msdosfs.c  Mon Mar 26 14:50:12 2012 +0000
+++ b/tests/fs/common/fstest_msdosfs.c  Mon Mar 26 15:10:26 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fstest_msdosfs.c,v 1.2 2010/07/30 16:15:05 pooka Exp $ */
+/*     $NetBSD: fstest_msdosfs.c,v 1.3 2012/03/26 15:10:26 njoly Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -75,9 +75,10 @@
        if (args == NULL)
                return -1;
 
-        snprintf(args->ta_devpath, MAXPATHLEN, "/dev/device%d.msdosfs", num);
-        snprintf(args->ta_imgpath, MAXPATHLEN, "%s", image);
-        args->ta_uargs.fspec = args->ta_devpath;
+       snprintf(args->ta_devpath, MAXPATHLEN, "/dev/device%d.msdosfs", num);
+       snprintf(args->ta_imgpath, MAXPATHLEN, "%s", image);
+       args->ta_uargs.fspec = args->ta_devpath;
+       args->ta_uargs.mask = 0755;
 
        res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK);
        if (res != 0) {



Home | Main Index | Thread Index | Old Index