Fix for incorrect handling of open flags in fhandler_proc

Chris January chris@atomice.net
Fri May 3 04:56:00 GMT 2002


This patch fixes some problems with the handling of open flags in
fhandler_proc, fhandler_process and fhandler_registry.

Regards
Chris

2002-05-03  Christopher January <chris@atomice.net>

 * fhandler_proc.cc (fhandler_proc::open): Change use of mode to flags.
 If the file does not exist already, fail with EROFS if O_CREAT flag is
 set.
 Change EROFS error to EACCES error when writing to a file.
 * fhandler_process.cc (fhandler_process::open): Change use of mode to
 flags.
 If the file does not exist already, fail with EROFS if O_CREAT flag is
 set.
 Change EROFS error to EACCES error when writing to a file.
 * fhandler_registry.cc (fhandler_registry::open): Change use of mode to
 flags.
 If the file does not exist already, fail with EROFS if O_CREAT flag is
 set.
 Change EROFS error to EACCES error when writing to a file.
 Move check for open for writing before open_key.
 * path.cc (path_conv::check): Do not return ENOENT if a file is not found
 in /proc.
 * fhandler_virtual.cc (fhandler_virtual::write): Change EROFS error to
 EACCES error.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: proc.patch.2
Type: application/octet-stream
Size: 7411 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020503/e12a8045/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangeLog
Type: application/octet-stream
Size: 923 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020503/e12a8045/attachment-0001.obj>


More information about the Cygwin-patches mailing list