[patch] [libeio] Fix demo.c

Gabriel Kerneis kerneis at pps.jussieu.fr
Sat Mar 20 13:06:11 CET 2010


Hi,

On Sat, Mar 20, 2010 at 12:41:35PM +0100, Gabriel Kerneis wrote:
> Besides, the truncate call fails (well, at least req->result is < 0) but
> I didn't figure out why yet.

The following patch fixes that bug as well ("permission denied"):

Index: demo.c
===================================================================
RCS file: /schmorpforge/libeio/demo.c,v
retrieving revision 1.2
diff -r1.2 demo.c
146,148c146,148
<       eio_fchmod (last_fd, 0123, 0, res_cb, "fchmod");
<       eio_readdir ("eio-test-dir", 0, readdir_cb, "readdir");
<       eio_readdir ("/nonexistant", 0, readdir_cb, "readdir");
---
>       eio_fchmod (last_fd, 0321, 0, res_cb, "fchmod");
>       eio_readdir ("eio-test-dir", 0, 0, readdir_cb, "readdir");
>       eio_readdir ("/nonexistant", 0, 0, readdir_cb, "readdir");

Regards,
-- 
Gabriel Kerneis



More information about the libev mailing list