summaryrefslogtreecommitdiff
path: root/source3/smbd/service.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-11-23 23:14:39 +0100
committerVolker Lendecke <vl@samba.org>2008-11-24 11:39:03 +0100
commit6f840dd678f8f19b84c042816e75e85d1077904e (patch)
tree1de278eb99e7090a3eff3e763bdb575bc021a7af /source3/smbd/service.c
parentc25f5c778acd7918551a6234d749854a0e8ea562 (diff)
downloadsamba-6f840dd678f8f19b84c042816e75e85d1077904e.tar.gz
samba-6f840dd678f8f19b84c042816e75e85d1077904e.tar.bz2
samba-6f840dd678f8f19b84c042816e75e85d1077904e.zip
Remove unused make_connection_with_chdir()
Diffstat (limited to 'source3/smbd/service.c')
-rw-r--r--source3/smbd/service.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 05197021a3..0dea615fb5 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -1123,38 +1123,6 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser,
return NULL;
}
-/***************************************************************************************
- Simple wrapper function for make_connection() to include a call to
- vfs_chdir()
- **************************************************************************************/
-
-connection_struct *make_connection_with_chdir(const char *service_in,
- DATA_BLOB password,
- const char *dev, uint16 vuid,
- NTSTATUS *status)
-{
- connection_struct *conn = NULL;
-
- conn = make_connection(service_in, password, dev, vuid, status);
-
- /*
- * make_connection() does not change the directory for us any more
- * so we have to do it as a separate step --jerry
- */
-
- if ( conn && vfs_ChDir(conn,conn->connectpath) != 0 ) {
- DEBUG(0,("make_connection_with_chdir: Can't change "
- "directory to %s for [print$] (%s)\n",
- conn->connectpath,strerror(errno)));
- yield_connection(conn, lp_servicename(SNUM(conn)));
- conn_free(conn);
- *status = NT_STATUS_UNSUCCESSFUL;
- return NULL;
- }
-
- return conn;
-}
-
/****************************************************************************
Make a connection to a service.
*