diff options
author | Jeremy Allison <jra@samba.org> | 1997-09-17 01:29:53 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-09-17 01:29:53 +0000 |
commit | 1590983eb0849130962cb0a08198cf8ad3d49380 (patch) | |
tree | 4e0786936672036ef2b0477d1ef7b6ff8d990d56 /source3/param | |
parent | 6449fc3b22284cea0aa186b0c6468696a1d8c1b4 (diff) | |
download | samba-1590983eb0849130962cb0a08198cf8ad3d49380.tar.gz samba-1590983eb0849130962cb0a08198cf8ad3d49380.tar.bz2 samba-1590983eb0849130962cb0a08198cf8ad3d49380.zip |
Added 'delete veto files' paremeter. Ugly - but the only
way to allow Samba client users to delete directories
containing Mac metafile information (.AppleDouble directories).
Needed for clean integration with netatalk.
Jeremy (jallison@whistle.com)
(This used to be commit 29c6c037dc62e44784e9d127d1e7ef3dd1506733)
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index b6eabcd727..7172eb2b0a 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -265,6 +265,7 @@ typedef struct BOOL *copymap; BOOL bDeleteReadonly; BOOL bFakeOplocks; + BOOL bDeleteVetoFiles; char dummy[3]; /* for alignment */ } service; @@ -345,6 +346,7 @@ static service sDefault = NULL, /* copymap */ False, /* bDeleteReadonly */ False, /* bFakeOplocks */ + False, /* bDeleteVetoFiles */ "" /* dummy */ }; @@ -521,6 +523,7 @@ struct parm_struct {"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}, + {"delete veto files",P_BOOL, P_LOCAL, &sDefault.bDeleteVetoFiles, NULL}, {"veto files", P_STRING, P_LOCAL, &sDefault.szVetoFiles, NULL}, {"hide files", P_STRING, P_LOCAL, &sDefault.szHideFiles, NULL}, {"guest only", P_BOOL, P_LOCAL, &sDefault.bGuest_only, NULL}, @@ -936,6 +939,7 @@ FN_LOCAL_BOOL(lp_syncalways,bSyncAlways) FN_LOCAL_BOOL(lp_map_system,bMap_system) FN_LOCAL_BOOL(lp_delete_readonly,bDeleteReadonly) FN_LOCAL_BOOL(lp_fake_oplocks,bFakeOplocks) +FN_LOCAL_BOOL(lp_recursive_veto_delete,bDeleteVetoFiles) FN_LOCAL_INTEGER(lp_create_mode,iCreate_mask) FN_LOCAL_INTEGER(lp_force_create_mode,iCreate_force_mode) |