This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-67
- From: Robert Pendell <shinji at elite-systems dot org>
- To: cygwin at cygwin dot com
- Date: Sat, 28 Nov 2009 19:12:53 -0500
- Subject: Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-67
- References: <4B115A56.2060705@alice.it>
On Sat, Nov 28, 2009 at 12:13 PM, Angelo Graziosi wrote:
>
> Corinna Vinschen wrote:
>>
>> Fixes a few last-minute bugs:
>
> Now, it seems that creating directories and files in some manner acquires an extra unexpected '+' flag. For example (from Cygwin.bat or MinTTY):
>
>
> $ echo "Not " > foo1.txt
>
> $ echo "Not OK" > foo2.txt
>
> $ diff -Naur foo1.txt foo2.txt > foo.diff
>
> $ cp foo1.txt foo.txt
>
> $ patch foo.txt foo.diff
> patching file foo.txt
>
> $ mkdir foo
>
> $ ls -lrtd foo*
> -rw-r--r-- Â1 ... Â 5 28 Nov 18:02 foo1.txt
> -rw-r--r-- Â1 ... Â 7 28 Nov 18:02 foo2.txt
> -rw-r--r-- Â1 ... 124 28 Nov 18:02 foo.diff
> -rw-r--r--+ 1 ... Â 7 28 Nov 18:03 foo.txt
> drwxr-xr-x+ 1 ... Â 0 28 Nov 18:03 foo
>
> See the extra '+' for 'foo.txt' and 'foo'!
>
> I didn't note this with previous version -66, -65...
>
> Is it to be expected with -67?
>
>
> Ciao,
> Angelo.
>
( resending as text-only... >.< )
Looks like there is a change in permissions with the file during the
diff program run. I might run a strace on it if someone tells me the
appropriate command to do. Anyways here is the relevant part with
icacls before and after the diff command.
shinji@Balthasar ~
$ icacls foo.txt
foo.txt Balthasar\shinji:(R,W,D,WDAC,WO)
Balthasar\None:(R)
Everyone:(R)
Successfully processed 1 files; Failed processing 0 files
shinji@Balthasar ~
$ patch foo.txt foo.diff
patching file foo.txt
shinji@Balthasar ~
$ icacls foo.txt
foo.txt Balthasar\shinji:(R,W,D,WDAC,WO)
Balthasar\None:(R)
Everyone:(R)
NT AUTHORITY\SYSTEM:(F)
BUILTIN\Administrators:(F)
Successfully processed 1 files; Failed processing 0 files
The 2 additional permission lines on the second icacls run is what
causes the + to appear.
Robert Pendell
shinji@elite-systems.org
CAcert Assurer
"A perfect world is one of chaos."
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple