aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_ntfs
diff options
context:
space:
mode:
authorJaakko Heinonen <jh@FreeBSD.org>2012-01-16 19:34:21 +0000
committerJaakko Heinonen <jh@FreeBSD.org>2012-01-16 19:34:21 +0000
commitd3250014386b2eae2bf27edcde24d97f7bbfcfc5 (patch)
tree54d0a2f2ed01c217587bf7b24aec11a7fbcadd97 /sbin/mount_ntfs
parent03c142e76290016711675793c65fe924a3d1b779 (diff)
Notes
Diffstat (limited to 'sbin/mount_ntfs')
-rw-r--r--sbin/mount_ntfs/mount_ntfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/mount_ntfs/mount_ntfs.c b/sbin/mount_ntfs/mount_ntfs.c
index 80fcab02e16b..9adfeb586f2a 100644
--- a/sbin/mount_ntfs/mount_ntfs.c
+++ b/sbin/mount_ntfs/mount_ntfs.c
@@ -163,7 +163,8 @@ main(int argc, char *argv[])
* Resolve the mountpoint with realpath(3) and remove unnecessary
* slashes from the devicename if there are any.
*/
- (void)checkpath(dir, mntpath);
+ if (checkpath(dir, mntpath) != 0)
+ err(EX_USAGE, "%s", mntpath);
(void)rmslashes(dev, dev);
args.fspec = dev;