Mail Archives: cygwin/2009/11/28/19:13:15
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-- =C2=A01 ... =C2=A0 5 28 Nov 18:02 foo1.txt
> -rw-r--r-- =C2=A01 ... =C2=A0 7 28 Nov 18:02 foo2.txt
> -rw-r--r-- =C2=A01 ... 124 28 Nov 18:02 foo.diff
> -rw-r--r--+ 1 ... =C2=A0 7 28 Nov 18:03 foo.txt
> drwxr-xr-x+ 1 ... =C2=A0 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 AT 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 AT Balthasar ~
$ patch foo.txt foo.diff
patching file foo.txt
shinji AT 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 AT elite-systems DOT 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
- Raw text -