git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa164d9
)
don't bother trying QFILEINFO/QUERY_FILE_ALL_INFO with win95 as it
author
Andrew Tridgell
<tridge@samba.org>
Thu, 5 Nov 1998 12:42:16 +0000
(12:42 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Thu, 5 Nov 1998 12:42:16 +0000
(12:42 +0000)
totally screws it up, giving garbage for the size fields.
(This used to be commit
86f98e0607e8a05ec026b919cc974c1c934b6882
)
source3/libsmb/clientgen.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clientgen.c
b/source3/libsmb/clientgen.c
index 1e2869c0b80072fa3d1b67bd361d671cef23a077..7168d9cd924ac68f2f99a1fa413274276ca7f2cf 100644
(file)
--- 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;
}