summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/fs/hpfs/hpfs_vfsops.c6
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c8
-rw-r--r--sys/fs/ntfs/ntfs_vfsops.c6
3 files changed, 10 insertions, 10 deletions
diff --git a/sys/fs/hpfs/hpfs_vfsops.c b/sys/fs/hpfs/hpfs_vfsops.c
index c0564ad..67355e2 100644
--- a/sys/fs/hpfs/hpfs_vfsops.c
+++ b/sys/fs/hpfs/hpfs_vfsops.c
@@ -283,11 +283,11 @@ hpfs_mountfs(devvp, mp, td)
hpmp->hpm_devvp = devvp;
hpmp->hpm_dev = devvp->v_rdev;
hpmp->hpm_mp = mp;
- if (1 == vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v))
+ if (vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v) == 1)
hpmp->hpm_uid = v;
- if (1 == vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v))
+ if (vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v) == 1)
hpmp->hpm_gid = v;
- if (1 == vfs_scanopt(mp->mnt_optnew, "mode", "%d", &v))
+ if (vfs_scanopt(mp->mnt_optnew, "mode", "%d", &v) == 1)
hpmp->hpm_mode = v;
error = hpfs_bminit(hpmp);
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index 5bd97d9..e81c9bf 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -149,13 +149,13 @@ update_mp(struct mount *mp, struct thread *td)
}
}
- if (1 == vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v))
+ if (vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v) == 1)
pmp->pm_gid = v;
- if (1 == vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v))
+ if (vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v) == 1)
pmp->pm_uid = v;
- if (1 == vfs_scanopt(mp->mnt_optnew, "mask", "%d", &v))
+ if (vfs_scanopt(mp->mnt_optnew, "mask", "%d", &v) == 1)
pmp->pm_mask = v & ALLPERMS;
- if (1 == vfs_scanopt(mp->mnt_optnew, "dirmask", "%d", &v))
+ if (vfs_scanopt(mp->mnt_optnew, "dirmask", "%d", &v) == 1)
pmp->pm_dirmask = v & ALLPERMS;
vfs_flagopt(mp->mnt_optnew, "shortname",
&pmp->pm_flags, MSDOSFSMNT_SHORTNAME);
diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c
index b50522f..20061cc 100644
--- a/sys/fs/ntfs/ntfs_vfsops.c
+++ b/sys/fs/ntfs/ntfs_vfsops.c
@@ -345,11 +345,11 @@ ntfs_mountfs(devvp, mp, td)
ntmp->ntm_mountp = mp;
ntmp->ntm_devvp = devvp;
- if (1 == vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v))
+ if (vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v) == 1)
ntmp->ntm_uid = v;
- if (1 == vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v))
+ if (vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v) == 1)
ntmp->ntm_gid = v;
- if (1 == vfs_scanopt(mp->mnt_optnew, "mode", "%d", &v))
+ if (vfs_scanopt(mp->mnt_optnew, "mode", "%d", &v) == 1)
ntmp->ntm_mode = v & ACCESSPERMS;
vfs_flagopt(mp->mnt_optnew,
"caseins", &ntmp->ntm_flag, NTFS_MFLAG_CASEINS);
OpenPOWER on IntegriCloud