summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mount_portalfs/mount_portalfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/mount_portalfs/mount_portalfs.c')
-rw-r--r--usr.sbin/mount_portalfs/mount_portalfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/mount_portalfs/mount_portalfs.c b/usr.sbin/mount_portalfs/mount_portalfs.c
index f4f5313..3bffbb1 100644
--- a/usr.sbin/mount_portalfs/mount_portalfs.c
+++ b/usr.sbin/mount_portalfs/mount_portalfs.c
@@ -140,7 +140,8 @@ main(int argc, char *argv[])
}
/* resolve the mountpoint with realpath(3) */
- (void)checkpath(argv[optind+1], mountpt);
+ if (checkpath(argv[optind+1], mountpt) != 0)
+ err(EX_USAGE, "%s", mountpt);
/*
* Construct the listening socket
OpenPOWER on IntegriCloud