summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-02-08 19:42:27 +0000
committerJeremy Allison <jra@samba.org>2007-02-08 19:42:27 +0000
commitb8e846868f630e736b6a9af9de430043ae0f82fa (patch)
tree7ab1f0db0926de5f2c65643db1dfdf4aa2be5559
parent88f0dae580a2ddb3259d7e79db1a4b0ef518dab7 (diff)
downloadsamba-b8e846868f630e736b6a9af9de430043ae0f82fa.tar.gz
samba-b8e846868f630e736b6a9af9de430043ae0f82fa.tar.xz
samba-b8e846868f630e736b6a9af9de430043ae0f82fa.zip
r21246: Remove incorrect control on unix set info.
We can take path or handle based calls. Jeremy.
-rw-r--r--source/smbd/trans2.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index fcf489a8e17..d40ba7c0fa5 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -3911,7 +3911,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) {
@@ -5386,10 +5386,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,
@@ -5454,7 +5450,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,