diff options
author | Jeremy Allison <jra@samba.org> | 2002-08-20 20:54:32 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-08-20 20:54:32 +0000 |
commit | f744db7a5dee0764bb41c43336b1b1a933a79682 (patch) | |
tree | 9906c01cdbf8c7b7b7e42e4d076640a0ac91abe6 /source3/smbd | |
parent | d9a4055174862c87c737685eb554429e2cd985d2 (diff) | |
download | samba-f744db7a5dee0764bb41c43336b1b1a933a79682.tar.gz samba-f744db7a5dee0764bb41c43336b1b1a933a79682.tar.bz2 samba-f744db7a5dee0764bb41c43336b1b1a933a79682.zip |
IFSTEST fixes for open fid, nametoolong.
Jeremy.
(This used to be commit e53a81261ed189881c0f07e1b46f97aa6770cab7)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/nttrans.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 1337824595..4e02ecce6e 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -565,6 +565,12 @@ int reply_ntcreate_and_X(connection_struct *conn, time_t c_time; START_PROFILE(SMBntcreateX); + DEBUG(10,("reply_ntcreateX: flags = 0x%x, desired_access = 0x%x \ +file_attributes = 0x%x, share_access = 0x%x, create_disposition = 0x%x \ +create_options = 0x%x root_dir_fid = 0x%x\n", flags, desired_access, file_attributes, + share_access, create_disposition, + root_dir_fid, create_options )); + /* If it's an IPC, use the pipe handler. */ if (IS_IPC(conn)) { @@ -577,6 +583,10 @@ int reply_ntcreate_and_X(connection_struct *conn, } } + if (create_options & FILE_OPEN_BY_FILE_ID) { + END_PROFILE(SMBntcreateX); + return ERROR_NT(NT_STATUS_NOT_SUPPORTED); + } /* * We need to construct the open_and_X ofun value from the @@ -1071,6 +1081,11 @@ static int call_nt_transact_create(connection_struct *conn, root_dir_fid = (uint16)IVAL(params,4); smb_attr = (file_attributes & SAMBA_ATTRIBUTES_MASK); + if (create_options & FILE_OPEN_BY_FILE_ID) { + END_PROFILE(SMBntcreateX); + return ERROR_NT(NT_STATUS_NOT_SUPPORTED); + } + /* * We need to construct the open_and_X ofun value from the * NT values, as that's what our code is structured to accept. |