summaryrefslogtreecommitdiff
path: root/sbin/mount_ntfs/mount_ntfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount_ntfs/mount_ntfs.c')
-rw-r--r--sbin/mount_ntfs/mount_ntfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mount_ntfs/mount_ntfs.c b/sbin/mount_ntfs/mount_ntfs.c
index 6737c123c32..9766cc4a402 100644
--- a/sbin/mount_ntfs/mount_ntfs.c
+++ b/sbin/mount_ntfs/mount_ntfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_ntfs.c,v 1.16 2015/12/30 21:38:28 millert Exp $ */
+/* $OpenBSD: mount_ntfs.c,v 1.17 2019/06/28 13:32:45 deraadt Exp $ */
/* $NetBSD: mount_ntfs.c,v 1.9 2003/05/03 15:37:08 christos Exp $ */
/*
@@ -121,7 +121,7 @@ main(int argc, char *argv[])
if (!set_mask)
args.mode = sb.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
}
- if (mount(MOUNT_NTFS, dir, mntflags, &args) < 0)
+ if (mount(MOUNT_NTFS, dir, mntflags, &args) == -1)
err(1, "%s on %s", dev, dir);
exit(0);