summaryrefslogtreecommitdiff
path: root/source3/libsmb/clientgen.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-05 12:42:16 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-05 12:42:16 +0000
commit099dae54dc944a6e0ec11c93e3004b2f097ea84d (patch)
tree19bf8d21c4ae7b20c18f105f2ebcfb1d61f74572 /source3/libsmb/clientgen.c
parentfa164d91bdaf0d5aaf2a7093cf450d3c7930e9e3 (diff)
downloadsamba-099dae54dc944a6e0ec11c93e3004b2f097ea84d.tar.gz
samba-099dae54dc944a6e0ec11c93e3004b2f097ea84d.tar.bz2
samba-099dae54dc944a6e0ec11c93e3004b2f097ea84d.zip
don't bother trying QFILEINFO/QUERY_FILE_ALL_INFO with win95 as it
totally screws it up, giving garbage for the size fields. (This used to be commit 86f98e0607e8a05ec026b919cc974c1c934b6882)
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r--source3/libsmb/clientgen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 1e2869c0b8..7168d9cd92 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -1746,6 +1746,10 @@ BOOL cli_qfileinfo(struct cli_state *cli, int fnum,
pstring param;
char *rparam=NULL, *rdata=NULL;
+ /* if its a win95 server then fail this - win95 totally screws it
+ up */
+ if (cli->win95) return False;
+
param_len = 4;
memset(param, 0, param_len);
@@ -1768,7 +1772,7 @@ BOOL cli_qfileinfo(struct cli_state *cli, int fnum,
return False;
}
- if (!rdata || data_len < 22) {
+ if (!rdata || data_len < 68) {
return False;
}