summaryrefslogtreecommitdiff
path: root/sbin/mount
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-01-18 01:37:28 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-01-18 01:37:28 +0000
commit221a5e9755896acf8abf09e010a9553b00010bf0 (patch)
tree3df6986f2bf47afa3d13a23bf5fcbaa5754e0ebd /sbin/mount
parent375fde38b392d0769b355259e78da6d1e861f578 (diff)
print out the ctime of a mount when verbose; millert@ ok
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/mount.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 3f15a6ee989..dc543569320 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount.c,v 1.23 2001/12/16 22:45:37 miod Exp $ */
+/* $OpenBSD: mount.c,v 1.24 2002/01/18 01:37:27 mickey Exp $ */
/* $NetBSD: mount.c,v 1.24 1995/11/18 03:34:29 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mount.c 8.19 (Berkeley) 4/19/94";
#else
-static char rcsid[] = "$OpenBSD: mount.c,v 1.23 2001/12/16 22:45:37 miod Exp $";
+static char rcsid[] = "$OpenBSD: mount.c,v 1.24 2002/01/18 01:37:27 mickey Exp $";
#endif
#endif /* not lint */
@@ -461,6 +461,16 @@ prmount(sf)
(void)printf("%sunknown flag%s %#x", !f++ ? " (" : ", ",
flags & (flags - 1) ? "s" : "", flags);
+
+ if (verbose) {
+ char buf[26];
+ time_t time = sf->f_ctime;
+
+ ctime_r(&time, buf);
+ buf[24] = '\0';
+ printf(", ctime=%s", buf);
+ }
+
/*
* Filesystem-specific options
* We only print the "interesting" values unless in verboser