diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-06-19 00:18:23 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-06-19 00:18:23 +0000 |
commit | 2c928212500e1de27550d9fccb0939fd2e450515 (patch) | |
tree | 0b113f2493d49883a2a91ee91099af44eb2096b8 /source/param/loadparm.c | |
parent | 84e36f48459c7fdf57319ad072e519dd37de3c8d (diff) | |
download | samba-2c928212500e1de27550d9fccb0939fd2e450515.tar.gz samba-2c928212500e1de27550d9fccb0939fd2e450515.tar.xz samba-2c928212500e1de27550d9fccb0939fd2e450515.zip |
loadparm.c: Added "force create mode" and "force directory mode" params.
proto.h: Added lp_force_create_mode() and lp_force_dir_mode().
server.c: Fixed application of mode bits to be regular across files
and directories.
smb.h: Removed unused CREATE_MODE macro.
Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/param/loadparm.c')
-rw-r--r-- | source/param/loadparm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c index 8f0108cc12d..8c2dd2776cc 100644 --- a/source/param/loadparm.c +++ b/source/param/loadparm.c @@ -221,7 +221,9 @@ typedef struct char *volume; int iMinPrintSpace; int iCreate_mode; + int iCreate_force_mode; int iDir_mode; + int iDir_force_mode; int iMaxConnections; int iDefaultCase; BOOL bAlternatePerm; @@ -296,7 +298,9 @@ static service sDefault = NULL, /* volume */ 0, /* iMinPrintSpace */ 0644, /* iCreate_mode */ + 0700, /* iCreate_force_mode */ 0755, /* iDir_mode */ + 0000, /* iDir_force_mode */ 0, /* iMaxConnections */ CASE_LOWER, /* iDefaultCase */ False, /* bAlternatePerm */ @@ -496,8 +500,10 @@ struct parm_struct {"min print space", P_INTEGER, P_LOCAL, &sDefault.iMinPrintSpace, NULL}, {"create mask", P_OCTAL, P_LOCAL, &sDefault.iCreate_mode, NULL}, {"create mode", P_OCTAL, P_LOCAL, &sDefault.iCreate_mode, NULL}, + {"force create mode",P_OCTAL, P_LOCAL, &sDefault.iCreate_force_mode, NULL}, {"directory mask", P_OCTAL, P_LOCAL, &sDefault.iDir_mode, NULL}, {"directory mode", P_OCTAL, P_LOCAL, &sDefault.iDir_mode, NULL}, + {"force directory mode", P_OCTAL, P_LOCAL, &sDefault.iDir_force_mode, NULL}, {"set directory", P_BOOLREV, P_LOCAL, &sDefault.bNo_set_dir, NULL}, {"status", P_BOOL, P_LOCAL, &sDefault.status, NULL}, {"hide dot files", P_BOOL, P_LOCAL, &sDefault.bHideDotFiles, NULL}, @@ -899,7 +905,9 @@ FN_LOCAL_BOOL(lp_delete_readonly,bDeleteReadonly) FN_LOCAL_BOOL(lp_fake_oplocks,bFakeOplocks) FN_LOCAL_INTEGER(lp_create_mode,iCreate_mode) +FN_LOCAL_INTEGER(lp_force_create_mode,iCreate_force_mode) FN_LOCAL_INTEGER(lp_dir_mode,iDir_mode) +FN_LOCAL_INTEGER(lp_force_dir_mode,iDir_force_mode) FN_LOCAL_INTEGER(lp_max_connections,iMaxConnections) FN_LOCAL_INTEGER(lp_defaultcase,iDefaultCase) FN_LOCAL_INTEGER(lp_minprintspace,iMinPrintSpace) |