summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2006-11-14 01:07:42 +0000
committerrodrigc <rodrigc@FreeBSD.org>2006-11-14 01:07:42 +0000
commitd71969c1c6c9d8a6ffd96d0b1d8bd4db03095907 (patch)
treebf3f0aa2bbcd8d9ba604d8f358951f5c93245b5a /sbin
parentfa70d013974c2fa6347ccc628becfdfcdbddc617 (diff)
downloadFreeBSD-src-d71969c1c6c9d8a6ffd96d0b1d8bd4db03095907.zip
FreeBSD-src-d71969c1c6c9d8a6ffd96d0b1d8bd4db03095907.tar.gz
Fix debugging output of '-d', to more accurately reflect if
we exec an external mount program, or just call nmount() to mount a filesystem. Noticed by: kris
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount/mount.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 9e5de11..b5ce18e 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -530,7 +530,10 @@ mountfs(const char *vfstype, const char *spec, const char *name, int flags,
argv[argc] = NULL;
if (debug) {
- (void)printf("exec: mount_%s", vfstype);
+ if (use_mountprog(vfstype))
+ printf("exec: mount_%s", vfstype);
+ else
+ printf("mount -t %s", vfstype);
for (i = 1; i < argc; i++)
(void)printf(" %s", argv[i]);
(void)printf("\n");
OpenPOWER on IntegriCloud