diff options
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 67e799a84d..672f1fe548 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -213,6 +213,7 @@ typedef struct char *volume; int iMinPrintSpace; int iCreate_mode; + int iDir_mode; int iMaxConnections; int iDefaultCase; BOOL bAlternatePerm; @@ -286,7 +287,8 @@ static service sDefault = NULL, /* writelist */ NULL, /* volume */ 0, /* iMinPrintSpace */ - 0755, /* iCreate_mode */ + 0644, /* iCreate_mode */ + 0755, /* iDir_mode */ 0, /* iMaxConnections */ CASE_LOWER, /* iDefaultCase */ False, /* bAlternatePerm */ @@ -479,6 +481,8 @@ 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}, + {"directory mask", P_OCTAL, P_LOCAL, &sDefault.iDir_mode, NULL}, + {"directory mode", P_OCTAL, P_LOCAL, &sDefault.iDir_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}, @@ -851,6 +855,7 @@ 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_dir_mode,iDir_mode) FN_LOCAL_INTEGER(lp_max_connections,iMaxConnections) FN_LOCAL_INTEGER(lp_defaultcase,iDefaultCase) FN_LOCAL_INTEGER(lp_minprintspace,iMinPrintSpace) |