Source-Changes-HG archive

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

[src/trunk]: src/sbin/mount Properly terminate the output from mount -v.



details:   https://anonhg.NetBSD.org/src/rev/1b4728015aee
branches:  trunk
changeset: 536856:1b4728015aee
user:      enami <enami%NetBSD.org@localhost>
date:      Mon Sep 23 03:35:22 2002 +0000

description:
Properly terminate the output from mount -v.

diffstat:

 sbin/mount/mount.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 788e99ac0e24 -r 1b4728015aee sbin/mount/mount.c
--- a/sbin/mount/mount.c        Mon Sep 23 03:32:34 2002 +0000
+++ b/sbin/mount/mount.c        Mon Sep 23 03:35:22 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount.c,v 1.62 2002/09/21 21:30:27 christos Exp $      */
+/*     $NetBSD: mount.c,v 1.63 2002/09/23 03:35:22 enami Exp $ */
 
 /*
  * Copyright (c) 1980, 1989, 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)mount.c    8.25 (Berkeley) 5/8/95";
 #else
-__RCSID("$NetBSD: mount.c,v 1.62 2002/09/21 21:30:27 christos Exp $");
+__RCSID("$NetBSD: mount.c,v 1.63 2002/09/23 03:35:22 enami Exp $");
 #endif
 #endif /* not lint */
 
@@ -538,11 +538,11 @@
                    !f++ ? " (" : ", ", sfp->f_syncwrites, sfp->f_asyncwrites);
                if (verbose > 1) {
                        char buf[2048];
+
                        if (getmntargs(sfp, buf, sizeof(buf)))
-                               printf(", [%s: %s])\n", sfp->f_fstypename, buf);
-                       else
-                               printf(")\n");
+                               printf(", [%s: %s]", sfp->f_fstypename, buf);
                }
+               printf(")\n");
        } else
                (void)printf("%s", f ? ")\n" : "\n");
 }



Home | Main Index | Thread Index | Old Index