summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-06-06 05:34:02 +0000
committerAndrew Tridgell <tridge@samba.org>2003-06-06 05:34:02 +0000
commitdc5f0b28cf8c90a1cda08955c4029b2d3902420e (patch)
treec5ac491c475384cbc3ab154b9b73e2bc2db90b7a /source3/smbd
parente35917bb9337200edd0d92044f4d4817e9feb891 (diff)
downloadsamba-dc5f0b28cf8c90a1cda08955c4029b2d3902420e.tar.gz
samba-dc5f0b28cf8c90a1cda08955c4029b2d3902420e.tar.bz2
samba-dc5f0b28cf8c90a1cda08955c4029b2d3902420e.zip
- the ALL_INFO trans2 QFILEINFO level uses a forced UCS2 name
- win2003 returns 0 for ea_size when there are no EAs (This used to be commit 83e0c21831f32aad2dfb6ebe4a27c7a0d2adb692)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index b20ec84eea..ba6162833b 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1920,7 +1920,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
SIVAL(pdata,l1_cbFile,(uint32)file_size);
SIVAL(pdata,l1_cbFileAlloc,(uint32)allocation_size);
SSVAL(pdata,l1_attrFile,mode);
- SIVAL(pdata,l1_attrFile+2,4); /* this is what OS2 does */
+ SIVAL(pdata,l1_attrFile+2,0); /* this is what win2003 does */
break;
case SMB_INFO_IS_NAME_VALID:
@@ -1943,7 +1943,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
case SMB_INFO_QUERY_ALL_EAS:
data_size = 4;
- SIVAL(pdata,0,data_size);
+ SIVAL(pdata,0,0); /* ea size */
break;
case SMB_FILE_BASIC_INFORMATION:
@@ -2042,7 +2042,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
SCVAL(pdata,21,(mode&aDIR)?1:0);
pdata += 24;
pdata += 4; /* EA info */
- len = srvstr_push(outbuf, pdata+4, dos_fname, -1, 0);
+ len = srvstr_push(outbuf, pdata+4, dos_fname, -1, STR_UNICODE);
SIVAL(pdata,0,len);
pdata += 4 + len;
data_size = PTR_DIFF(pdata,(*ppdata));