]> err.no Git - util-linux/commitdiff
mount: fix -fv so that it doesn't incorrectly spit out an error that nothing was...
authorMike Frysinger <vapier@gentoo.org>
Fri, 13 Apr 2007 10:58:18 +0000 (06:58 -0400)
committerKarel Zak <kzak@redhat.com>
Wed, 25 Apr 2007 21:57:27 +0000 (23:57 +0200)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
mount/mount.c

index 7c1f1bdc690d4c073019f77938fb82d85f3dd42c..1526f263a902c0e7cb1e5ddc81d117137d58a753 100644 (file)
@@ -1749,7 +1749,7 @@ main(int argc, char *argv[]) {
        case 0:
                /* mount -a */
                result = do_mount_all (types, options, test_opts);
-               if (result == 0 && verbose)
+               if (result == 0 && verbose && !fake)
                        error(_("nothing was mounted"));
                break;