From 099dae54dc944a6e0ec11c93e3004b2f097ea84d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 5 Nov 1998 12:42:16 +0000 Subject: 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) --- source3/libsmb/clientgen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- cgit