Hi Rob, List,

In function __lskip()__

 or = readall(fd, libbuf, try);
     if (or < 0) perror_exit("lskip to %lld", (long long)offset);
-    else offset -= try;
+    else offset -= or;
     if (or < try) break;

offset is decremented by __try__ amount, whereas it should be decremented
by the actual amount read, i.e. __or__.

Attached is the patch.

regards,
Ashwini

Attachment: lib.c.patch
Description: Binary data

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to