diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-20 06:52:45 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-20 06:52:45 +0000 |
commit | c8a040f2aa733e926280af010513849b6406741d (patch) | |
tree | d1444f2c7730705718a37a0950c264f1477be44c | |
parent | 0cfd0a5e543181b1384f7afee93fbaf3ccb2b999 (diff) | |
download | samba-c8a040f2aa733e926280af010513849b6406741d.tar.gz |
fixed long filenames on win98
the fstype must not be null terminated or win98 doesn't recognise it
-rw-r--r-- | source/smbd/trans2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index aaa5aade97f..73496f406b0 100644 --- a/source/smbd/trans2.c +++ b/source/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; |