Source-Changes-HG archive

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

[src/trunk]: src/sbin/mount_msdos report also gmtoff in the output of mount o...



details:   https://anonhg.NetBSD.org/src/rev/5ab685660900
branches:  trunk
changeset: 347342:5ab685660900
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Aug 21 22:27:20 2016 +0000

description:
report also gmtoff in the output of mount options

diffstat:

 sbin/mount_msdos/mount_msdos.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r fd1c7bc82755 -r 5ab685660900 sbin/mount_msdos/mount_msdos.c
--- a/sbin/mount_msdos/mount_msdos.c    Sun Aug 21 20:51:04 2016 +0000
+++ b/sbin/mount_msdos/mount_msdos.c    Sun Aug 21 22:27:20 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mount_msdos.c,v 1.49 2016/02/06 10:35:58 mlelstv Exp $ */
+/* $NetBSD: mount_msdos.c,v 1.50 2016/08/21 22:27:20 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mount_msdos.c,v 1.49 2016/02/06 10:35:58 mlelstv Exp $");
+__RCSID("$NetBSD: mount_msdos.c,v 1.50 2016/08/21 22:27:20 jdolecek Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -203,8 +203,9 @@
        if (mntflags & MNT_GETARGS) {
                char buf[1024];
                (void)snprintb(buf, sizeof(buf), MSDOSFSMNT_BITS, args.flags);
-               printf("uid=%d, gid=%d, mask=0%o, dirmask=0%o, flags=%s\n",
-                   args.uid, args.gid, args.mask, args.dirmask, buf);
+               printf("uid=%d, gid=%d, mask=0%o, dirmask=0%o, gmtoff=%d, flags=%s\n",
+                   args.uid, args.gid, args.mask, args.dirmask,
+                   args.gmtoff, buf);
        }
 
        exit (0);



Home | Main Index | Thread Index | Old Index