diff options
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r-- | sbin/mount/mount.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index cf142e4..ca81795 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -539,7 +539,10 @@ mountfs(const char *vfstype, const char *spec, const char *name, int flags, static struct cpa mnt_argv; /* resolve the mountpoint with realpath(3) */ - (void)checkpath(name, mntpath); + if (checkpath(name, mntpath) != 0) { + warn("%s", mntpath); + return (1); + } name = mntpath; if (mntopts == NULL) |