Re: HEADSUP maintainers: Packages install scripts without execute permissions

2009-06-23 Thread Corinna Vinschen
On Jun 22 22:06, Christian Franke wrote: > Corinna Vinschen wrote: > >> So I created a list of packages which install scripts into >> /etc/preremove, /etc/postinstall, and /usr/bin without setting execute >> permissions on them. Please guys, fix the permissions ASAP. >> >> [...] >> Christian Frank

Re: HEADSUP maintainers: Packages install scripts without execute permissions

2009-06-22 Thread Christian Franke
Corinna Vinschen wrote: So I created a list of packages which install scripts into /etc/preremove, /etc/postinstall, and /usr/bin without setting execute permissions on them. Please guys, fix the permissions ASAP. [...] Christian Franke: ddrescue: etc/postinstall/ddrescu

Re: HEADSUP maintainers: Packages install scripts without execute permissions

2009-06-22 Thread Dave Korn
Eric Blake wrote: > Indeed - changing things to be 'bash script' instead of the current 'bash -c > script' would make the use of alternative interpreters harder. But it does > not > make it impossible; you can always do: > > #!/bin/sh > /bin/awk <<\EOF > ... > EOF > > instead of > > #!/bin/

Re: HEADSUP maintainers: Packages install scripts without execute ?permissions

2009-06-22 Thread Corinna Vinschen
On Jun 22 16:09, Corinna Vinschen wrote: > On Jun 22 13:58, Eric Blake wrote: > > For that matter, are there any postinstall scripts currently relying on a > > different interpreter? If not, then I'm in favor of the idea of changing > > setup.exe to be immune to the execute bit on postinstall sc

Re: HEADSUP maintainers: Packages install scripts without execute ?permissions

2009-06-22 Thread Corinna Vinschen
On Jun 22 13:58, Eric Blake wrote: > Corinna Vinschen cygwin.com> writes: > > > > Why don't we just remove the "-c" and get setup.exe to use the > simple "bash > > > " syntax meaning "treat as a text file, open it and > pipe > > > it to stdin"? > > > > I already suggested this on the cygwin

Re: HEADSUP maintainers: Packages install scripts without execute permissions

2009-06-22 Thread Eric Blake
Corinna Vinschen cygwin.com> writes: > > Why don't we just remove the "-c" and get setup.exe to use the simple "bash > > " syntax meaning "treat as a text file, open it and pipe > > it to stdin"? > > I already suggested this on the cygwin-developers ML back in May (*) > but it was not discu

Re: HEADSUP maintainers: Packages install scripts without execute permissions

2009-06-22 Thread Corinna Vinschen
On Jun 22 14:38, Dave Korn wrote: > Corinna Vinschen wrote: > > Hi, > > > > > > Here's the problem: If you exec shell scripts, they should only be run > > if the user trying to run the script has execute permissions on the > > script. > > Shell scripts don't _have_ to be executable, only if

Re: HEADSUP maintainers: Packages install scripts without execute permissions

2009-06-22 Thread Dave Korn
Corinna Vinschen wrote: > Hi, > > > Here's the problem: If you exec shell scripts, they should only be run > if the user trying to run the script has execute permissions on the > script. Shell scripts don't _have_ to be executable, only if you want to launch one as if it were a command, rat