diff options
author | rsc <devnull@localhost> | 2006-06-26 00:06:28 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-06-26 00:06:28 +0000 |
commit | f53117fb6ba30e8c52a8e401c622d2ddee89fcbe (patch) | |
tree | 6bf494b555af208807bd40ec1f57e6dae3871bb3 /src/lib9pclient | |
parent | 5c419e0741887cda7f450363f35da9ab4eb4ca68 (diff) | |
download | plan9port-f53117fb6ba30e8c52a8e401c622d2ddee89fcbe.tar.gz plan9port-f53117fb6ba30e8c52a8e401c622d2ddee89fcbe.tar.bz2 plan9port-f53117fb6ba30e8c52a8e401c622d2ddee89fcbe.zip |
set errstr for bad dir contents
Diffstat (limited to 'src/lib9pclient')
-rw-r--r-- | src/lib9pclient/dirread.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib9pclient/dirread.c b/src/lib9pclient/dirread.c index 540cfc6b..2d111917 100644 --- a/src/lib9pclient/dirread.c +++ b/src/lib9pclient/dirread.c @@ -90,8 +90,11 @@ fsdirreadall(CFid *fid, Dir **d) break; ts += n; } - if(ts >= 0) + if(ts >= 0){ ts = dirpackage(buf, ts, d); + if(ts < 0) + werrstr("malformed directory contents"); + } free(buf); if(ts == 0 && n < 0) return -1; |