summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-06-01 20:43:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:51 -0500
commit03d4344432c6aa75d400afc501aec1a14070f35d (patch)
tree8abb111853211e521eeefcdf8ac5e4a5095ce664 /source3/param/loadparm.c
parent027c5068cd29263cd57fd3723eeeea5b1fd3a4a9 (diff)
downloadsamba-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/loadparm.c')
-rw-r--r--source3/param/loadparm.c11
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;
+}