summaryrefslogtreecommitdiffstats
path: root/source/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
commit86f98e0607e8a05ec026b919cc974c1c934b6882 (patch)
treeb9b3d4d661c183cceb8fa2a5d504d525c702bdee /source/libsmb/clientgen.c
parent0efac70f756dce4c92744fc59b68b528f6984dee (diff)
downloadsamba-86f98e0607e8a05ec026b919cc974c1c934b6882.tar.gz
samba-86f98e0607e8a05ec026b919cc974c1c934b6882.tar.xz
samba-86f98e0607e8a05ec026b919cc974c1c934b6882.zip
don't bother trying QFILEINFO/QUERY_FILE_ALL_INFO with win95 as it
totally screws it up, giving garbage for the size fields.
Diffstat (limited to 'source/libsmb/clientgen.c')
-rw-r--r--source/libsmb/clientgen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c
index 1e2869c0b80..7168d9cd924 100644
--- a/source/libsmb/clientgen.c
+++ b/source/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;
}