summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-11-25 12:20:55 +0000
committerAndrew Tridgell <tridge@samba.org>1997-11-25 12:20:55 +0000
commite54a611dad5fdefa11a2ff3b24c8305b3018207d (patch)
tree27e0d3b8d3094ecbd4b1e4b6e26075e9defa0447
parentdf46de4e008db997d3bfca97c128fe30ec718db9 (diff)
downloadsamba-e54a611dad5fdefa11a2ff3b24c8305b3018207d.tar.gz
samba-e54a611dad5fdefa11a2ff3b24c8305b3018207d.tar.bz2
samba-e54a611dad5fdefa11a2ff3b24c8305b3018207d.zip
get rid of stat command (it is a hangover from an old experiment)
(This used to be commit 8ced76c4c71c67c54bf0deedff5a7adfca04e4f3)
-rw-r--r--source3/client/client.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 4333092b07..9b7ce7ecb5 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2180,43 +2180,6 @@ static void cmd_cancel(char *inbuf,char *outbuf )
}
-/****************************************************************************
- get info on a file
- ****************************************************************************/
-static void cmd_stat(char *inbuf,char *outbuf)
-{
- fstring buf;
- pstring param;
- char *resp_data=NULL;
- char *resp_param=NULL;
- int resp_data_len = 0;
- int resp_param_len=0;
- char *p;
- uint16 setup = TRANSACT2_QPATHINFO;
-
- if (!next_token(NULL,buf,NULL)) {
- printf("stat <file>\n");
- return;
- }
-
- bzero(param,6);
- SSVAL(param,0,4); /* level */
- p = param+6;
- strcpy(p,cur_dir);
- strcat(p,buf);
-
- cli_send_trans_request(outbuf,SMBtrans2,NULL,0,FID_UNUSED,0,
- NULL,param,&setup,
- 0,6 + strlen(p)+1,1,
- BUFFER_SIZE,2,0);
-
- cli_receive_trans_response(inbuf,SMBtrans2,
- &resp_data_len,&resp_param_len,
- &resp_data,&resp_param);
-
- if (resp_data) free(resp_data); resp_data = NULL;
- if (resp_param) free(resp_param); resp_param = NULL;
-}
/****************************************************************************
@@ -3252,7 +3215,6 @@ struct
{"queue",cmd_queue,"show the print queue"},
{"qinfo",cmd_qinfo,"show print queue information"},
{"cancel",cmd_cancel,"<jobid> cancel a print queue entry"},
- {"stat",cmd_stat,"<file> get info on a file (experimental!)"},
{"quit",cli_send_logout,"logoff the server"},
{"q",cli_send_logout,"logoff the server"},
{"exit",cli_send_logout,"logoff the server"},