all_string_sub() is broken as it doesn't handle mb chars correctly (and
commitbce0678331aa4746181389e0f91f11fb2a6dadcb
authorJeremy Allison <jra@samba.org>
Fri, 5 Mar 2004 01:37:25 +0000 (5 01:37 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 5 Mar 2004 01:37:25 +0000 (5 01:37 +0000)
treef84b8d109f8782f789f5b4e4ca1f428fe5e0ed17
parentac5e0c4bb686e2aaccc9b70f240f79747fd48cd8
all_string_sub() is broken as it doesn't handle mb chars correctly (and
so breaks when substitution '/' and '\'). It's used by unix_clean_name(),
which is used by reduce_name, which is used by check_name() (phew!).
Now that we know all filenames passed to check_name() are in a "good"
format (no double slashes, all '\\' chars translated to '/' etc.) due
to the new check_path_syntax() we can avoid calling reduce_name unless
widelinks are denied. After this check-in I can fix all_string_sub() to
handle mb chars correctly as it won't be in the direct path in the
main path handling code.
Jeremy.
source/smbd/filename.c
source/smbd/vfs.c