summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-02-10 20:03:56 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-02-10 20:03:56 +0000
commit617370314ef0d19002243105f5c8a549e3397152 (patch)
tree1732ed533a1de7a07e14aca6f427552302f2f468
parentf9f1085c7db673f602f9de07670a9bbf3205410f (diff)
downloadsamba-617370314ef0d19002243105f5c8a549e3397152.tar.gz
samba-617370314ef0d19002243105f5c8a549e3397152.tar.xz
samba-617370314ef0d19002243105f5c8a549e3397152.zip
Added trim_string(s, "./", 0) to unix_clean_name to remove
leading ./ characters. jra@cygnus.com
-rw-r--r--source/lib/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index e1302857fb5..44184f8d468 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -1184,6 +1184,9 @@ void unix_clean_name(char *s)
/* remove any double slashes */
string_sub(s, "//","/");
+ /* Remove leading ./ characters */
+ trim_string(s, "./", NULL);
+
while ((p = strstr(s,"/../")) != NULL)
{
pstring s1;