]> sourceware.org Git - newlib-cygwin.git/commitdiff
Revert "Cygwin: fix permission problem when writing DAC info on Samba shares"
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 27 Jan 2022 14:22:39 +0000 (15:22 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 27 Jan 2022 14:31:25 +0000 (15:31 +0100)
This reverts commit 0390cc85727b0165b5cdfcff7578cac94ae3371d.

There's no indication what exact situation this patch was supposed to
solve, and local testing doesn't show any such problems.  However, this
patch itself introduced a new problem, as outlined by
https://cygwin.com/pipermail/cygwin/2022-January/250629.html

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler.cc
winsup/cygwin/release/3.3.4

index 7d427135e5e732eb86f0380679b92e63ba8569e9..98d7a3b2d34ba7750e58454f0a371e3fe5b7ca6d 100644 (file)
@@ -561,12 +561,10 @@ fhandler_base::open (int flags, mode_t mode)
       access = READ_CONTROL | FILE_READ_ATTRIBUTES;
       break;
     case query_write_control:
-      access = READ_CONTROL | WRITE_OWNER | WRITE_DAC
-              | (pc.fs_is_samba () ? 0 : FILE_WRITE_ATTRIBUTES);
+      access = READ_CONTROL | WRITE_OWNER | WRITE_DAC | FILE_WRITE_ATTRIBUTES;
       break;
     case query_write_dac:
-      access = READ_CONTROL | WRITE_DAC
-              | (pc.fs_is_samba () ? 0 : FILE_WRITE_ATTRIBUTES);
+      access = READ_CONTROL | WRITE_DAC | FILE_WRITE_ATTRIBUTES;
       break;
     case query_write_attributes:
       access = READ_CONTROL | FILE_WRITE_ATTRIBUTES;
index d45722ac538943608579ecb1fafd3effb04889b7..bc74e69146a7bb1228be5be56fbaf1132e425548 100644 (file)
@@ -33,3 +33,7 @@ Bug Fixes
 
 - Fix double free for archetype, which is caused when open() fails.
   Addresses: https://cygwin.com/pipermail/cygwin/2022-January/250518.html
+
+- Fix a permission problem when writing DOS attributes on Samba.
+  Addresses: https://cygwin.com/pipermail/cygwin/2022-January/250629.html
+
This page took 0.033485 seconds and 5 git commands to generate.