Florian Weimer ?????:
> Package: tinycdb
> Version: 0.76
> 
> This doesn't look right:
> 
> int internal_function
> _cdb_make_fullwrite(int fd, const unsigned char *buf, unsigned len)
> {
>   while(len) {
>     int l = write(fd, buf, len);
>     if (l < 0 && errno != EINTR)
>       return -1;
>     len -= l;                <===================
>     buf += l;
>   }
>   return 0;
> }
> 
> If I'm not mistaken, l can be negative at this point (if EINTR is
> encountered).

You're exactly right.  Some simplification at some point, slipped
into the wrong place...

I'll prepare a new release, with this bug and some other
very minor things fixed.

Thanks!

/mjt



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to