summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
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;
+}