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$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd January 3, 1999
|
.Dd November 17, 2007
|
||||||
.Dt MOUNT_NTFS 8
|
.Dt MOUNT_NTFS 8
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -82,6 +82,9 @@ on which the file system is being mounted.
|
|||||||
.It Fl m Ar mask
|
.It Fl m Ar mask
|
||||||
Specify the maximum file permissions for files
|
Specify the maximum file permissions for files
|
||||||
in the file system.
|
in the file system.
|
||||||
|
Only the nine low-order bits of
|
||||||
|
.Ar mask
|
||||||
|
are used.
|
||||||
.It Fl C Ar charset
|
.It Fl C Ar charset
|
||||||
Specify local
|
Specify local
|
||||||
.Ar charset
|
.Ar charset
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
#include <sys/buf.h>
|
#include <sys/buf.h>
|
||||||
#include <sys/fcntl.h>
|
#include <sys/fcntl.h>
|
||||||
#include <sys/malloc.h>
|
#include <sys/malloc.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
|
||||||
#include <geom/geom.h>
|
#include <geom/geom.h>
|
||||||
@ -318,7 +319,7 @@ ntfs_mountfs(devvp, mp, td)
|
|||||||
if (1 == vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v))
|
if (1 == vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v))
|
||||||
ntmp->ntm_gid = v;
|
ntmp->ntm_gid = v;
|
||||||
if (1 == vfs_scanopt(mp->mnt_optnew, "mode", "%d", &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,
|
vfs_flagopt(mp->mnt_optnew,
|
||||||
"caseins", &ntmp->ntm_flag, NTFS_MFLAG_CASEINS);
|
"caseins", &ntmp->ntm_flag, NTFS_MFLAG_CASEINS);
|
||||||
vfs_flagopt(mp->mnt_optnew,
|
vfs_flagopt(mp->mnt_optnew,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user