MFC rev. 1.90 ntfs_vfsops.c and revs. 1.22, 1.23 mount_ntfs.8: mask

maximum file permissions with ACCESSPERMS.
This commit is contained in:
maxim 2008-01-19 17:54:11 +00:00
parent bb807d7edc
commit 12252a5277
2 changed files with 6 additions and 2 deletions

View File

@ -30,7 +30,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd January 3, 1999
.Dd November 17, 2007
.Dt MOUNT_NTFS 8
.Os
.Sh NAME
@ -82,6 +82,9 @@ on which the file system is being mounted.
.It Fl m Ar mask
Specify the maximum file permissions for files
in the file system.
Only the nine low-order bits of
.Ar mask
are used.
.It Fl C Ar charset
Specify local
.Ar charset

View File

@ -41,6 +41,7 @@
#include <sys/buf.h>
#include <sys/fcntl.h>
#include <sys/malloc.h>
#include <sys/stat.h>
#include <sys/systm.h>
#include <geom/geom.h>
@ -318,7 +319,7 @@ ntfs_mountfs(devvp, mp, td)
if (1 == vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v))
ntmp->ntm_gid = v;
if (1 == vfs_scanopt(mp->mnt_optnew, "mode", "%d", &v))
ntmp->ntm_mode = v;
ntmp->ntm_mode = v & ACCESSPERMS;
vfs_flagopt(mp->mnt_optnew,
"caseins", &ntmp->ntm_flag, NTFS_MFLAG_CASEINS);
vfs_flagopt(mp->mnt_optnew,