From e54a611dad5fdefa11a2ff3b24c8305b3018207d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 25 Nov 1997 12:20:55 +0000 Subject: get rid of stat command (it is a hangover from an old experiment) (This used to be commit 8ced76c4c71c67c54bf0deedff5a7adfca04e4f3) --- source3/client/client.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) (limited to 'source3/client/client.c') 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 \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," cancel a print queue entry"}, - {"stat",cmd_stat," 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"}, -- cgit