diff options
author | Ken Brown <kbrown@cornell.edu> | 2020-05-28 13:05:32 -0400 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2020-05-28 13:34:19 -0400 |
commit | 41ae84e6dcd810b9c94f1bbd5e00e6c8a28ccb94 (patch) | |
tree | 7f8f8ebab3cea0c6fb2dce9ee2008a4bbd6fdab9 /winsup | |
parent | b5089f339a2124f52dfe58c8e3c929e4c5634175 (diff) | |
download | newlib-41ae84e6dcd810b9c94f1bbd5e00e6c8a28ccb94.zip newlib-41ae84e6dcd810b9c94f1bbd5e00e6c8a28ccb94.tar.gz newlib-41ae84e6dcd810b9c94f1bbd5e00e6c8a28ccb94.tar.bz2 |
Cygwin: stat: fix st_mode of fifos again
This partially reverts commit
f36262d56ac78f04de147746ce4a85c6155e4a23. That commit incorrectly
made the st_mode of a fifo reflect the Windows permissions of the disk
file underlying the fifo.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/release/3.1.5 | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 43d81c1..c37b3c5 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -491,7 +491,7 @@ fhandler_base::fstat_helper (struct stat *buf) else { buf->st_dev = buf->st_rdev = dev (); - buf->st_mode |= dev ().mode () & S_IFMT; + buf->st_mode = dev ().mode (); buf->st_size = 0; } } diff --git a/winsup/cygwin/release/3.1.5 b/winsup/cygwin/release/3.1.5 index 1e3763f..0a78f5f 100644 --- a/winsup/cygwin/release/3.1.5 +++ b/winsup/cygwin/release/3.1.5 @@ -32,3 +32,6 @@ Bug Fixes: - Make sure pseudo tty doesn't hang if cygwin-console-helper.exe is non-functional. Addresses: https://cygwin.com/pipermail/cygwin-patches/2020q2/010191.html + +- Fix a bug causing FIFOs to have incorrect permissions. + Addresses: https://sourceware.org/pipermail/cygwin/2020-May/245031.html |