* fhandler.cc (fhandler_base::fcntl): Don't clobber O_APPEND when

both O_NONBLOCK/O_NDELAY are set for F_SETFL.
This commit is contained in:
Corinna Vinschen 2003-10-24 12:11:20 +00:00
parent 0b4274f58b
commit 2b7dcf79ae
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-10-24 Brian Ford <ford@vss.fsi.com>
* fhandler.cc (fhandler_base::fcntl): Don't clobber O_APPEND when
both O_NONBLOCK/O_NDELAY are set for F_SETFL.
2003-10-24 Corinna Vinschen <corinna@vinschen.de>
* path.cc (win32_device_name): Fix comment.

View File

@ -1068,7 +1068,7 @@ int fhandler_base::fcntl (int cmd, void *arg)
Set only the flag that has been passed in. If both are set, just
record O_NONBLOCK. */
if ((new_flags & OLD_O_NDELAY) && (new_flags & O_NONBLOCK))
new_flags = O_NONBLOCK;
new_flags &= ~OLD_O_NDELAY;
set_flags ((get_flags () & ~allowed_flags) | new_flags);
}
res = 0;