From 221a5e9755896acf8abf09e010a9553b00010bf0 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 18 Jan 2002 01:37:28 +0000 Subject: print out the ctime of a mount when verbose; millert@ ok --- sbin/mount/mount.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'sbin/mount') 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 -- cgit v1.2.3