diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-08-14 19:20:25 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:29:46 -0500 |
commit | 3f172071d4eb34a462fd481cee53276a9c2b675b (patch) | |
tree | 4728ad1fda9d862f6db37208a9ae3e89aa61358c | |
parent | 0f73d64f7dcabffa7b2e512d4c2b5750f6799090 (diff) | |
download | samba-3f172071d4eb34a462fd481cee53276a9c2b675b.tar.gz samba-3f172071d4eb34a462fd481cee53276a9c2b675b.tar.bz2 samba-3f172071d4eb34a462fd481cee53276a9c2b675b.zip |
r24429: reply_setdir is not used...
(This used to be commit ca27a718b07949959efaeb49f310123de76af9a0)
-rw-r--r-- | source3/smbd/reply.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index e16d8d4f6b..59a5caad1a 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -5737,59 +5737,6 @@ int reply_copy(connection_struct *conn, char *inbuf,char *outbuf, int dum_size, return(outsize); } -/**************************************************************************** - Reply to a setdir. -****************************************************************************/ - -int reply_setdir(connection_struct *conn, char *inbuf,char *outbuf, int dum_size, int dum_buffsize) -{ - int snum; - int outsize = 0; - pstring newdir; - NTSTATUS status; - - START_PROFILE(pathworks_setdir); - - snum = SNUM(conn); - if (!CAN_SETDIR(snum)) { - END_PROFILE(pathworks_setdir); - return ERROR_DOS(ERRDOS,ERRnoaccess); - } - - srvstr_get_path(inbuf, SVAL(inbuf,smb_flg2), newdir, - smb_buf(inbuf) + 1, sizeof(newdir), 0, STR_TERMINATE, - &status); - if (!NT_STATUS_IS_OK(status)) { - END_PROFILE(pathworks_setdir); - return ERROR_NT(status); - } - - status = resolve_dfspath(conn, SVAL(inbuf,smb_flg2) & FLAGS2_DFS_PATHNAMES, newdir); - if (!NT_STATUS_IS_OK(status)) { - END_PROFILE(pathworks_setdir); - if (NT_STATUS_EQUAL(status,NT_STATUS_PATH_NOT_COVERED)) { - return ERROR_BOTH(NT_STATUS_PATH_NOT_COVERED, ERRSRV, ERRbadpath); - } - return ERROR_NT(status); - } - - if (strlen(newdir) != 0) { - if (!vfs_directory_exist(conn,newdir,NULL)) { - END_PROFILE(pathworks_setdir); - return ERROR_DOS(ERRDOS,ERRbadpath); - } - set_conn_connectpath(conn,newdir); - } - - outsize = set_message(inbuf,outbuf,0,0,False); - SCVAL(outbuf,smb_reh,CVAL(inbuf,smb_reh)); - - DEBUG(3,("setdir %s\n", newdir)); - - END_PROFILE(pathworks_setdir); - return(outsize); -} - #undef DBGC_CLASS #define DBGC_CLASS DBGC_LOCKING |