summaryrefslogtreecommitdiff
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
commit25ca2fd3d36382107e5443d64a6bf35fe7c47cca (patch)
tree629aa1a1973d871f137ad4490b84e41a07b22973
parentc6311f4e0a17472f4ea7e6c15ad8fc41c71270c0 (diff)
downloadsamba-25ca2fd3d36382107e5443d64a6bf35fe7c47cca.tar.gz
samba-25ca2fd3d36382107e5443d64a6bf35fe7c47cca.tar.bz2
samba-25ca2fd3d36382107e5443d64a6bf35fe7c47cca.zip
Added trim_string(s, "./", 0) to unix_clean_name to remove
leading ./ characters. jra@cygnus.com (This used to be commit 617370314ef0d19002243105f5c8a549e3397152)
-rw-r--r--source3/lib/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index e1302857fb..44184f8d46 100644
--- a/source3/lib/util.c
+++ b/source3/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;