diff options
author | jh <jh@FreeBSD.org> | 2012-01-16 19:34:21 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2012-01-16 19:34:21 +0000 |
commit | ae73284c1a1116d89c84235929df10421a348b30 (patch) | |
tree | 54d0a2f2ed01c217587bf7b24aec11a7fbcadd97 /usr.sbin/mount_portalfs | |
parent | 5a45f730a5625608124e818a7be2c3dbd2d20512 (diff) | |
download | FreeBSD-src-ae73284c1a1116d89c84235929df10421a348b30.zip FreeBSD-src-ae73284c1a1116d89c84235929df10421a348b30.tar.gz |
Change checkpath() to not exit on error. This is a prerequisite for
fixing the mount(8) "failok" option.
PR: 163668
Reviewed by: Garrett Cooper, delphij (previous version)
Diffstat (limited to 'usr.sbin/mount_portalfs')
-rw-r--r-- | usr.sbin/mount_portalfs/mount_portalfs.c | 3 |
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 |