summaryrefslogtreecommitdiff
path: root/source3/smbd/vfs.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-01-12 14:48:23 -0800
committerJeremy Allison <jra@samba.org>2010-01-12 14:48:23 -0800
commit2f30aea3324f32f9b8555e961256fc1280da2871 (patch)
treea31352b9dffe3b0a0e12e4dc2b5955dd624cd2bc /source3/smbd/vfs.c
parent2d4dda0688d5c88fb73ae17db970afe9d0f77f6a (diff)
downloadsamba-2f30aea3324f32f9b8555e961256fc1280da2871.tar.gz
samba-2f30aea3324f32f9b8555e961256fc1280da2871.tar.bz2
samba-2f30aea3324f32f9b8555e961256fc1280da2871.zip
Remove the global char *LastDir.
This is no longer used for anything.
Diffstat (limited to 'source3/smbd/vfs.c')
-rw-r--r--source3/smbd/vfs.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 2ce61eed30..5acec70f54 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -706,26 +706,7 @@ const char *vfs_readdirname(connection_struct *conn, void *p,
int vfs_ChDir(connection_struct *conn, const char *path)
{
- int res;
-
- if (!LastDir) {
- LastDir = SMB_STRDUP("");
- }
-
- if (strcsequal(path,"."))
- return(0);
-
- if (*path == '/' && strcsequal(LastDir,path))
- return(0);
-
- DEBUG(4,("vfs_ChDir to %s\n",path));
-
- res = SMB_VFS_CHDIR(conn,path);
- if (!res) {
- SAFE_FREE(LastDir);
- LastDir = SMB_STRDUP(path);
- }
- return(res);
+ return SMB_VFS_CHDIR(conn,path);
}
/*******************************************************************