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:
parent
bb807d7edc
commit
12252a5277
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user