summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-20 06:52:45 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-20 06:52:45 +0000
commit2838f61540f899001b9a11928cbf6fc23d5cd5fe (patch)
tree37d036b1d1f703f8c7ea5ea50163f723a267f5d7 /source3/smbd
parentec312741639c447c83ad76683c9f1538a3f5084b (diff)
downloadsamba-2838f61540f899001b9a11928cbf6fc23d5cd5fe.tar.gz
samba-2838f61540f899001b9a11928cbf6fc23d5cd5fe.tar.bz2
samba-2838f61540f899001b9a11928cbf6fc23d5cd5fe.zip
fixed long filenames on win98
the fstype must not be null terminated or win98 doesn't recognise it (This used to be commit c8a040f2aa733e926280af010513849b6406741d)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index aaa5aade97..73496f406b 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1155,7 +1155,9 @@ static int call_trans2qfsinfo(connection_struct *conn,
SIVAL(pdata,0,FILE_CASE_PRESERVED_NAMES|FILE_CASE_SENSITIVE_SEARCH|
(lp_nt_acl_support(SNUM(conn)) ? FILE_PERSISTENT_ACLS : 0)); /* FS ATTRIBUTES */
SIVAL(pdata,4,255); /* Max filename component length */
- len = srvstr_push(outbuf, pdata+12, fstype, -1, STR_TERMINATE);
+ /* NOTE! the fstype must *not* be null terminated or win98 won't recognise it
+ and will think we can't do long filenames */
+ len = srvstr_push(outbuf, pdata+12, fstype, -1, 0);
SIVAL(pdata,8,len);
data_len = 12 + len;
break;