diff options
author | Tim Potter <tpot@samba.org> | 2000-02-03 23:08:24 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-02-03 23:08:24 +0000 |
commit | ae7696117e81bb469fa71f9bc880f6b5aac0724e (patch) | |
tree | c2ee230e6e4df2ff6a708640b30fd8d6eaa36135 /source3/smbd/dir.c | |
parent | 79601327cb9840153ccf641085eba19a1e32e143 (diff) | |
download | samba-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/dir.c')
-rw-r--r-- | source3/smbd/dir.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 32fc523541..58b0061e19 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -670,7 +670,7 @@ void *OpenDir(connection_struct *conn, char *name, BOOL use_veto) { Dir *dirp; char *n; - DIR *p = conn->vfs_ops.opendir(name); + DIR *p = conn->vfs_ops.opendir(dos_to_unix(name,False)); int used=0; if (!p) return(NULL); @@ -684,10 +684,14 @@ void *OpenDir(connection_struct *conn, char *name, BOOL use_veto) while ((n = vfs_readdirname(conn, p))) { - int l = strlen(n)+1; + int l; + pstring zn; + + pstrcpy(zn, unix_to_dos(n,True)); + l = strlen(zn)+1; /* If it's a vetoed file, pretend it doesn't even exist */ - if (use_veto && conn && IS_VETO_PATH(conn, n)) continue; + if (use_veto && conn && IS_VETO_PATH(conn, zn)) continue; if (used + l > dirp->mallocsize) { int s = MAX(used+l,used+2000); @@ -701,7 +705,7 @@ void *OpenDir(connection_struct *conn, char *name, BOOL use_veto) dirp->mallocsize = s; dirp->current = dirp->data; } - pstrcpy(dirp->data+used,n); + pstrcpy(dirp->data+used,zn); used += l; dirp->numentries++; } |