summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-03-01 21:48:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:50 -0500
commita5e671e867bcf6bd61d68bcf8a1732cf02647843 (patch)
tree0250847e8fffc072a251710e1ddf4b6559c9ba92
parent09f5aa4269a6133e822ce4bbbde426ce5b37cd34 (diff)
downloadsamba-a5e671e867bcf6bd61d68bcf8a1732cf02647843.tar.gz
samba-a5e671e867bcf6bd61d68bcf8a1732cf02647843.tar.bz2
samba-a5e671e867bcf6bd61d68bcf8a1732cf02647843.zip
r5608: BUG 2399 - removing dead code (not finished with bug yet).
(This used to be commit 48353c199cfbfd56760b34ccf99b089bb627e2ed)
-rw-r--r--source3/smbd/service.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index bc74a28faf..684d49c56a 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -606,22 +606,10 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser,
}
#endif
-#if CHECK_PATH_ON_TCONX
/* win2000 does not check the permissions on the directory
during the tree connect, instead relying on permission
check during individual operations. To match this behaviour
I have disabled this chdir check (tridge) */
- if (vfs_ChDir(conn,conn->connectpath) != 0) {
- DEBUG(0,("%s (%s) Can't change directory to %s (%s)\n",
- get_remote_machine_name(), conn->client_address,
- conn->connectpath,strerror(errno)));
- change_to_root_user();
- yield_connection(conn, lp_servicename(SNUM(conn)));
- conn_free(conn);
- *status = NT_STATUS_BAD_NETWORK_NAME;
- return NULL;
- }
-#else
/* the alternative is just to check the directory exists */
if (SMB_VFS_STAT(conn, conn->connectpath, &st) != 0 || !S_ISDIR(st.st_mode)) {
DEBUG(0,("'%s' does not exist or is not a directory, when connecting to [%s]\n", conn->connectpath, lp_servicename(SNUM(conn))));
@@ -631,7 +619,6 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser,
*status = NT_STATUS_BAD_NETWORK_NAME;
return NULL;
}
-#endif
string_set(&conn->origpath,conn->connectpath);