diff options
author | Jeremy Allison <jra@samba.org> | 1998-07-11 00:28:34 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-07-11 00:28:34 +0000 |
commit | 5ffb30858f3b9181c90e50f6a3d791e017be3f7e (patch) | |
tree | 57037cc6dd3770ed4df4e15ef62523dfabf5bfdd /source3/smbd/nttrans.c | |
parent | 1e4b0268aa3b5021b72c17d54c846e575952e625 (diff) | |
download | samba-5ffb30858f3b9181c90e50f6a3d791e017be3f7e.tar.gz samba-5ffb30858f3b9181c90e50f6a3d791e017be3f7e.tar.bz2 samba-5ffb30858f3b9181c90e50f6a3d791e017be3f7e.zip |
nttrans.c: More NT SMB stuff.
reply.c: Broke out the internals of reply_mv so that they may be called
externally from the NT transact rename.
server.c: Changed stat calls to sys_stat - found in code review
of bugfix.
Jeremy.
(This used to be commit fb19dad88edfd7a5c7257a15afc9253fb41f4b99)
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r-- | source3/smbd/nttrans.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index bc7a504d1d..c452e945c7 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -48,11 +48,12 @@ static char *known_nt_pipes[] = { }; /**************************************************************************** - Send the required number of replies back. - We assume all fields other than the data fields are - set correctly for the type of call. - HACK ! Always assumes smb_setup field is zero. + Send the required number of replies back. + We assume all fields other than the data fields are + set correctly for the type of call. + HACK ! Always assumes smb_setup field is zero. ****************************************************************************/ + static int send_nt_replies(char *outbuf, int bufsize, char *params, int paramsize, char *pdata, int datasize) { @@ -751,16 +752,17 @@ static int call_nt_transact_rename(char *inbuf, char *outbuf, int bufsize, int c char **setup, char **params, char **data) { char *params = *pparams; - pstring fname; + pstring new_name; + pstring old_name; int fnum = SVAL(params, 0); uint16 rename_flags = SVAL(params,2); uint32 total_parameter_count = IVAL(inbuf, smb_nt_TotalParameterCount); uint32 fname_len = MIN((((uint32)IVAL(inbuf,smb_nt_TotalParameterCount)-4)), ((uint32)sizeof(fname)-1)); - StrnCpy(fname,params+4,fname_len); - unix_convert(fname,cnum,0,&bad_path); - + StrnCpy(new_name,params+4,fname_len); + unix_convert(new_name,cnum,0,&bad_path); + } /**************************************************************************** |