Module Name: src
Committed By: jdolecek
Date: Sun Aug 21 22:27:20 UTC 2016
Modified Files:
src/sbin/mount_msdos: mount_msdos.c
Log Message:
report also gmtoff in the output of mount options
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sbin/mount_msdos/mount_msdos.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/mount_msdos/mount_msdos.c
diff -u src/sbin/mount_msdos/mount_msdos.c:1.49 src/sbin/mount_msdos/mount_msdos.c:1.50
--- src/sbin/mount_msdos/mount_msdos.c:1.49 Sat Feb 6 10:35:58 2016
+++ src/sbin/mount_msdos/mount_msdos.c Sun Aug 21 22:27:20 2016
@@ -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 @@ mount_msdos(int argc, char **argv)
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);