diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-06-01 13:43:21 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-06-01 13:43:21 +0000 |
commit | 3db0d893f3d3b16cf0402c049e0534a23d9ccd75 (patch) | |
tree | 09070271f484a83d62c2270f5e3e56c8b88df6a3 /source3/smbd | |
parent | 71b0b6007e54da1be7f7fe5fc6401c36a05e217e (diff) | |
download | samba-3db0d893f3d3b16cf0402c049e0534a23d9ccd75.tar.gz samba-3db0d893f3d3b16cf0402c049e0534a23d9ccd75.tar.xz samba-3db0d893f3d3b16cf0402c049e0534a23d9ccd75.zip |
added the COMPRESSION_INFO trans2 QFILEINFO level and fixed the
IS_NAME_VALID QPATHINFO level
(This used to be commit 1634346e2a6e73af80d4e68d50c6398fb24869a5)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/trans2.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index a911bb5dde8..8364c4b5095 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1932,6 +1932,14 @@ static int call_trans2qfilepathinfo(connection_struct *conn, SIVAL(pdata,l1_attrFile+2,4); /* this is what OS2 does */ break; + case SMB_INFO_IS_NAME_VALID: + if (tran_call == TRANSACT2_QFILEINFO) { + /* os/2 needs this ? really ?*/ + return ERROR_DOS(ERRDOS,ERRbadfunc); + } + data_size = 0; + break; + case SMB_INFO_QUERY_EAS_FROM_LIST: data_size = 24; put_dos_date2(pdata,0,c_time); @@ -1947,9 +1955,6 @@ static int call_trans2qfilepathinfo(connection_struct *conn, SIVAL(pdata,0,data_size); break; - case 6: - return ERROR_DOS(ERRDOS,ERRbadfunc); /* os/2 needs this */ - case SMB_FILE_BASIC_INFORMATION: case SMB_QUERY_FILE_BASIC_INFO: @@ -2121,6 +2126,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn, } break; + case SMB_QUERY_COMPRESSION_INFO: case SMB_FILE_COMPRESSION_INFORMATION: SOFF_T(pdata,0,file_size); SIVAL(pdata,8,0); /* ??? */ |