New commits:
http://git.directfb.org/?p=core/DirectFB.git;a=commit;h=cae9a4851e3a00834ce16edaeead0b7b142f8a5d
commit cae9a4851e3a00834ce16edaeead0b7b142f8a5d
Author: Marek Pikarski <[email protected]>
Date: Fri Sep 13 13:43:30 2013 +0200
[PATCH v2 1/2] Fix for double close of a single file descriptor.
In direct_file_close(), 'file->fd' is closed twice if 'file->file' isn't
NULL.
Since'file->file' is assigned the result of fdopen(file->fd, ) in
direct_fgets(),
fclose(file->file,) also closes 'file->fd', so it doesn't need to be closed
again with close(file->fd).
Similary, in direct_pclose() close(file->fd) doesn't need to be called
after calling fclose(file->file).
v2 changes:
- check a return value of fclose() in direct_file_close().
Signed-off-by: Tetsuya Mukawa <[email protected]>
Thanks!!!
lib/direct/os/linux/glibc/filesystem.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
_______________________________________________
directfb-cvs mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-cvs