diff options
-rw-r--r-- | sbin/mount/mount.c | 6 | ||||
-rw-r--r-- | sbin/mount_ifs/mount.c | 6 |
2 files changed, 2 insertions, 10 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. */ diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c index cf05d3f..1be00ec 100644 --- a/sbin/mount_ifs/mount.c +++ b/sbin/mount_ifs/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. */ |