git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9f1085
)
Added trim_string(s, "./", 0) to unix_clean_name to remove
author
Samba Release Account
<samba-bugs@samba.org>
Mon, 10 Feb 1997 20:03:56 +0000
(20:03 +0000)
committer
Samba Release Account
<samba-bugs@samba.org>
Mon, 10 Feb 1997 20:03:56 +0000
(20:03 +0000)
leading ./ characters.
jra@cygnus.com
source/lib/util.c
patch
|
blob
|
history
diff --git
a/source/lib/util.c
b/source/lib/util.c
index e1302857fb50364a2942153390c23ff4c7ca331a..44184f8d46862efc29eb1f0b2efc3accca592c92 100644
(file)
--- 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;