summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-06-22 21:20:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:59 -0500
commit7e509e9b99a18495bde01a990e37de70bae35aac (patch)
tree36cb4800a573693b66ec270baf9c5d609fa4801c /source3/param/loadparm.c
parentbc8954c4fce89992eb31bcb88e27728859aa7132 (diff)
downloadsamba-7e509e9b99a18495bde01a990e37de70bae35aac.tar.gz
samba-7e509e9b99a18495bde01a990e37de70bae35aac.tar.bz2
samba-7e509e9b99a18495bde01a990e37de70bae35aac.zip
r7842: With the patch I sent Steve yesterday this gives us complete POSIX pathnames.
ie. files containing : and \ can be accessed from Linux. Jeremy. (This used to be commit e9b8d23d6138d909a65ea70b2e801881e8333b38)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 0083b50820..fd0154d275 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4523,3 +4523,29 @@ void set_store_dos_attributes(int snum, BOOL val)
return;
ServicePtrs[(snum)]->bStoreDosAttributes = val;
}
+
+void lp_set_mangling_method(const char *new_method)
+{
+ string_set(&Globals.szManglingMethod, new_method);
+}
+
+/*******************************************************************
+ Global state for POSIX pathname processing.
+********************************************************************/
+
+static BOOL posix_pathnames;
+
+BOOL lp_posix_pathnames(void)
+{
+ return posix_pathnames;
+}
+
+/*******************************************************************
+ Change everything needed to ensure POSIX pathname processing (currently
+ not much).
+********************************************************************/
+
+void lp_set_posix_pathnames(void)
+{
+ posix_pathnames = True;
+}