diff options
author | Jeremy Allison <jra@samba.org> | 2007-02-08 19:42:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:51 -0500 |
commit | e4bcfcf1c525cce78b7a22731e1a424e8cf02856 (patch) | |
tree | 40a065d41c02ce1ca9ec7befc61fa1f4a7e1fbc8 /source3 | |
parent | 69cee2a3ec4f39aab83a8cbf55307df182bf3065 (diff) | |
download | samba-e4bcfcf1c525cce78b7a22731e1a424e8cf02856.tar.gz samba-e4bcfcf1c525cce78b7a22731e1a424e8cf02856.tar.bz2 samba-e4bcfcf1c525cce78b7a22731e1a424e8cf02856.zip |
r21246: Remove incorrect control on unix set info.
We can take path or handle based calls.
Jeremy.
(This used to be commit a19fe0f0c4a809d9b086e904586243949f57ec96)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/trans2.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 103be39936..3bdeec0ead 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -3921,7 +3921,7 @@ static NTSTATUS smb_set_file_size(connection_struct *conn, return NT_STATUS_OK; } - DEBUG(10,("call_trans2setfilepathinfo: file %s : setting new size to %.0f\n", + DEBUG(10,("smb_set_file_size: file %s : setting new size to %.0f\n", fname, (double)size )); if (fsp && fsp->fh->fd != -1) { @@ -5392,10 +5392,6 @@ static int call_trans2setfilepathinfo(connection_struct *conn, char *inbuf, char case SMB_SET_FILE_UNIX_BASIC: { - if (tran_call == TRANSACT2_SETFILEINFO) { - return ERROR_NT(NT_STATUS_INVALID_LEVEL); - } - status = smb_set_file_unix_basic(conn, pdata, total_data, @@ -5460,7 +5456,7 @@ static int call_trans2setfilepathinfo(connection_struct *conn, char *inbuf, char case SMB_SET_POSIX_LOCK: { - if (tran_call == TRANSACT2_SETFILEINFO) { + if (tran_call != TRANSACT2_SETFILEINFO) { return ERROR_NT(NT_STATUS_INVALID_LEVEL); } status = smb_set_posix_lock(conn, |