This is the mail archive of the cygwin 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]

Re: 1.7.9-1 Patch command mangles permissions on windows 7

On 10/13/2011 7:15 PM, Roger Pack wrote:
Forgive me if this is a commonly reported bug, but I wasn't sure if
other discussions on permissions issues were the same as this issue...

$ c:\installs\cygwin\bin\patch.exe -p0<  multithread_utilities_trunk.diff
(Stripping trailing CRs from patch.)
patching file xxx/yyy/zzz/

now attempt to use the files I just patched:

$ mvn clean install
[ERROR] error: error reading xxx\yyy\zzz\;
xxx\yyy\ (Access is denied)

I was able to reproduce this on another computer, as well.
Windows 7, 64 bit, blah blah blah.

When I right click on the files and go to properties ->  security,
somehow all users except administrators have no rights to the modified

This could be related to the problem discussed starting at

The issue there was ACLs on the temporary directory used by patch. The resolution of that was to set TMP and TEMP to "/tmp" in Cygwin's default startup files (see /etc/defaults/profile). But you appear to be running patch outside of a Cygwin shell, so you're not benefiting from that fix. (I'm basing this guess on the fact that you start patch by giving its Windows path.)


-- Problem reports: FAQ: Documentation: Unsubscribe info:

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