diff options
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r-- | sbin/mount/mount.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index cf05d3f..1be00ec 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -332,12 +332,8 @@ mountfs(vfstype, spec, name, flags, options, mntopts) (void)snprintf(execname, sizeof(execname), "%s/mount_%s", *edir, vfstype); execv(execname, (char * const *)argv); - if (errno != ENOENT) - warn("exec %s for %s", execname, name); - } while (*++edir != NULL); - - if (errno == ENOENT) warn("exec %s for %s", execname, name); + } while (*++edir != NULL); exit(1); /* NOTREACHED */ default: /* Parent. */ |