This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix for incorrect handling of open flags in fhandler_proc


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.

Attachment: proc.patch.2
Description: Binary data

Attachment: ChangeLog
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]