summaryrefslogtreecommitdiff
path: root/source3/smbd/filename.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-09-03 03:14:31 +0000
committerAndrew Tridgell <tridge@samba.org>1998-09-03 03:14:31 +0000
commit0b5cc173099c7fd5ea4865ef4197739ec87e4c35 (patch)
tree78628f6843f0685683573efafc710540f4953e50 /source3/smbd/filename.c
parent0067ea1b5a634db442ed8f89558dc4d43d9f3fe6 (diff)
downloadsamba-0b5cc173099c7fd5ea4865ef4197739ec87e4c35.tar.gz
samba-0b5cc173099c7fd5ea4865ef4197739ec87e4c35.tar.bz2
samba-0b5cc173099c7fd5ea4865ef4197739ec87e4c35.zip
fixed a bug in the name mangling code. It implicitly assumed that
mangling a name can't increase it's size which isn't true. (imagine a file called "L B" which mangles to "LB~XX") The symptoms were that users couldn't run batch files from short directory names that contained non 8.3 characters (such as spaces). (This used to be commit c319d8ea3f8b42bb3a8e501642971ed0bdb21583)
Diffstat (limited to 'source3/smbd/filename.c')
-rw-r--r--source3/smbd/filename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 3bc69210b9..656bb8997c 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -77,7 +77,7 @@ BOOL mangled_equal(char *name1, char *name2)
return(False);
pstrcpy(tmpname,name2);
- mangle_name_83(tmpname,sizeof(tmpname));
+ mangle_name_83(tmpname);
return(strequal(name1,tmpname));
}