Re: Executable bit check

2010-11-15 Thread Corinna Vinschen
On Nov 5 14:47, Illia Bobyr wrote: > On 11/5/2010 11:56 AM, Eric Blake wrote: > > [...] > > On Linux: > > > > $ setfacl -m mask:rwx d/f > > $ getfacl d/f > > # file: d/f > > # owner: eblake > > # group: eblake > > user::rw- > > user:dummy:rwx > > group::rw- > > mask::rwx > > other::r-- > > > > $ c

Re: [local fix] Executable bit check

2010-11-05 Thread Illia Bobyr
On 11/4/2010 7:36 PM, Illia Bobyr wrote: > [...] > > I'm looking at git-svn tests and they assume that "chmod -x abc&& test > ! -x abc". And it does not hold on Cygwin. > > [...] Thanks to Eric Blake and Larry Hall I found a workaround for my git build environment. Instead of doing just

Re: Executable bit check

2010-11-05 Thread Illia Bobyr
On 11/5/2010 11:56 AM, Eric Blake wrote: > [...] > On Linux: > > $ setfacl -m mask:rwx d/f > $ getfacl d/f > # file: d/f > # owner: eblake > # group: eblake > user::rw- > user:dummy:rwx > group::rw- > mask::rwx > other::r-- > > $ chmod -x d/f > $ getfacl d/f > # file: d/f > # owner: eblake > # grou

Re: Executable bit check

2010-11-05 Thread Eric Blake
On 11/05/2010 09:55 AM, Illia Bobyr wrote: > On 11/4/2010 8:14 PM, Larry Hall (Cygwin) wrote: >> [...] > What does 'getfacl abc' say? $ getfacl abc # file: abc # owner: ibobyr # group: Domain Users user::rw- group::r-- group:SYSTEM:rwx group:Administ

Re: Executable bit check

2010-11-05 Thread Illia Bobyr
On 11/4/2010 8:14 PM, Larry Hall (Cygwin) wrote: > [...] What does 'getfacl abc' say? >> > >>> $ getfacl abc >>> # file: abc >>> # owner: ibobyr >>> # group: Domain Users >>> user::rw- >>> group::r-- >>> group:SYSTEM:rwx >>> group:Administrators:rwx >>> group:Users:r-x >>> mask:rwx >>> other:r

Re: Executable bit check

2010-11-04 Thread Larry Hall (Cygwin)
On 11/4/2010 8:36 PM, Illia Bobyr wrote: Hi, It seems that Cygwin does not check for executable bit before it allows a script to run, does it? $ rm abc $ cat #!/bin/sh > echo Hm... > EOF $ ll abc -rw-r--r--+ 1 ibobyr Domain Users Nov 21 4 16:44 abc $ test -x abc&& echo Ex

Executable bit check

2010-11-04 Thread Illia Bobyr
Hi, It seems that Cygwin does not check for executable bit before it allows a script to run, does it? $ rm abc $ cat #!/bin/sh > echo Hm... > EOF $ ll abc -rw-r--r--+ 1 ibobyr Domain Users Nov 21 4 16:44 abc $ test -x abc && echo Executable Executable $ ./abc Hm... I was able