summaryrefslogtreecommitdiff
path: root/source3/smbd/filename.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-02-03 23:08:24 +0000
committerTim Potter <tpot@samba.org>2000-02-03 23:08:24 +0000
commitae7696117e81bb469fa71f9bc880f6b5aac0724e (patch)
treec2ee230e6e4df2ff6a708640b30fd8d6eaa36135 /source3/smbd/filename.c
parent79601327cb9840153ccf641085eba19a1e32e143 (diff)
downloadsamba-ae7696117e81bb469fa71f9bc880f6b5aac0724e.tar.gz
samba-ae7696117e81bb469fa71f9bc880f6b5aac0724e.tar.bz2
samba-ae7696117e81bb469fa71f9bc880f6b5aac0724e.zip
Put back lots of missing calls to dos_to_unix(). Thanks to
aono@cc.osaka-kyoiku.ac.jp (Tomoki AONO) (This used to be commit 176c405d2702a4245561ff56c8eac3c754a0dea3)
Diffstat (limited to 'source3/smbd/filename.c')
-rw-r--r--source3/smbd/filename.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index b1550e5c73..85055f676a 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -444,7 +444,7 @@ BOOL unix_convert(char *name,connection_struct *conn,char *saved_last_component,
* stat the name - if it exists then we are all done!
*/
- if (conn->vfs_ops.stat(name,&st) == 0) {
+ if (conn->vfs_ops.stat(dos_to_unix(name,False),&st) == 0) {
stat_cache_add(orig_path, name);
DEBUG(5,("conversion finished %s -> %s\n",orig_path, name));
if(pst)
@@ -511,7 +511,7 @@ BOOL unix_convert(char *name,connection_struct *conn,char *saved_last_component,
* Check if the name exists up to this point.
*/
- if (conn->vfs_ops.stat(name, &st) == 0) {
+ if (conn->vfs_ops.stat(dos_to_unix(name,False), &st) == 0) {
/*
* It exists. it must either be a directory or this must be
* the last part of the path for it to be OK.