Re: Cygwin 1.7: Possible file permission errors in 'base-files'

2009-06-22 Thread Corinna Vinschen
On Jun 20 12:59, Mark Harig wrote:

 The two files 'base-files-mketc.sh' and 'base-files-profiles.sh' included
 in the 'base-files' package have their permissions set to 644 while all
 other scripts in /etc/postinstall/ have their permissions set to 755.

 Is this a side-effect of 'base-files-profiles.sh' not completing without
 errors, or is this set in the packaging?

 (Technically, the files with the permission problems are
 /etc/postinstall/base-files-mketc.sh.done and
 /etc/postinstall/base-files-profiles.sh.done.)

Technically it's a packaging bug.  The scripts should have execute
permissions like all the shell scripts in /etc/postinstall and
/etc/preremove.

John, I fixed that on Sourceware and created a 3.8-4 package with
execute permissions for postinstall and preremove scripts.

It shouldn't affect postinstall, though.  When calling `bash -c script',
then bash runs these scripts as long as the user has read permissions
on Cygwin.  Which is actually kind of a bug in Cygwin.  I've put that
on my TODO list.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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



Re: Cygwin 1.7: Possible file permission errors in 'base-files'

2009-06-22 Thread John Morrison
On Mon, June 22, 2009 10:43 am, Corinna Vinschen wrote:
 On Jun 20 12:59, Mark Harig wrote:

 The two files 'base-files-mketc.sh' and 'base-files-profiles.sh'
 included
 in the 'base-files' package have their permissions set to 644 while all
 other scripts in /etc/postinstall/ have their permissions set to 755.

 Is this a side-effect of 'base-files-profiles.sh' not completing without
 errors, or is this set in the packaging?

 (Technically, the files with the permission problems are
 /etc/postinstall/base-files-mketc.sh.done and
 /etc/postinstall/base-files-profiles.sh.done.)

 Technically it's a packaging bug.  The scripts should have execute
 permissions like all the shell scripts in /etc/postinstall and
 /etc/preremove.

 John, I fixed that on Sourceware and created a 3.8-4 package with
 execute permissions for postinstall and preremove scripts.

 It shouldn't affect postinstall, though.  When calling `bash -c script',
 then bash runs these scripts as long as the user has read permissions
 on Cygwin.  Which is actually kind of a bug in Cygwin.  I've put that
 on my TODO list.

Thanks, I'll change my 'source' version.  I probably changed the
permissions higher up with recursion and, since setup never complained,
never noticed.

J.


--
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



Re: Cygwin 1.7: Possible file permission errors in 'base-files'

2009-06-22 Thread Christopher Faylor
On Mon, Jun 22, 2009 at 11:43:10AM +0200, Corinna Vinschen wrote:
On Jun 20 12:59, Mark Harig wrote:

 The two files 'base-files-mketc.sh' and 'base-files-profiles.sh' included
 in the 'base-files' package have their permissions set to 644 while all
 other scripts in /etc/postinstall/ have their permissions set to 755.

 Is this a side-effect of 'base-files-profiles.sh' not completing without
 errors, or is this set in the packaging?

 (Technically, the files with the permission problems are
 /etc/postinstall/base-files-mketc.sh.done and
 /etc/postinstall/base-files-profiles.sh.done.)

Technically it's a packaging bug.  The scripts should have execute
permissions like all the shell scripts in /etc/postinstall and
/etc/preremove.

John, I fixed that on Sourceware and created a 3.8-4 package with
execute permissions for postinstall and preremove scripts.

It shouldn't affect postinstall, though.  When calling `bash -c script',
then bash runs these scripts as long as the user has read permissions
on Cygwin.  Which is actually kind of a bug in Cygwin.  I've put that
on my TODO list.

Sounds like we should drop the -c.

cgf

--
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



Cygwin 1.7: Possible file permission errors in 'base-files'

2009-06-20 Thread Mark Harig


The two files 'base-files-mketc.sh' and 'base-files-profiles.sh' included
in the 'base-files' package have their permissions set to 644 while all
other scripts in /etc/postinstall/ have their permissions set to 755.

Is this a side-effect of 'base-files-profiles.sh' not completing without
errors, or is this set in the packaging?

(Technically, the files with the permission problems are
/etc/postinstall/base-files-mketc.sh.done and
/etc/postinstall/base-files-profiles.sh.done.)


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/