diff options
author | Jeremy Allison <jra@samba.org> | 2004-06-01 20:43:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:51 -0500 |
commit | 03d4344432c6aa75d400afc501aec1a14070f35d (patch) | |
tree | 8abb111853211e521eeefcdf8ac5e4a5095ce664 /source3/param | |
parent | 027c5068cd29263cd57fd3723eeeea5b1fd3a4a9 (diff) | |
download | samba-03d4344432c6aa75d400afc501aec1a14070f35d.tar.gz samba-03d4344432c6aa75d400afc501aec1a14070f35d.tar.bz2 samba-03d4344432c6aa75d400afc501aec1a14070f35d.zip |
r971: Auto remove store dos attributes if underlying filesystem
doesn't support EA's.
Jeremy.
(This used to be commit 9de6b25c9e9abe982e21b0229df520802cafbfd8)
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 6376e4aa91..f158a35336 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -4289,3 +4289,14 @@ BOOL lp_use_sendfile(int snum) { return (_lp_use_sendfile(snum) && !srv_is_signing_active()); } + +/******************************************************************* + Turn off storing DOS attributes if this share doesn't support it. +********************************************************************/ + +void set_store_dos_attributes(int snum, BOOL val) +{ + if (!LP_SNUM_OK(snum)) + return; + ServicePtrs[(snum)]->bStoreDosAttributes = val; +} |