This is the mail archive of the cygwin-apps mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

HEADSUP maintainers: Packages install scripts without execute permissions

[Wrong list.  Resent to cygwin-apps]


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.  This requires to check for executability in Cygwin, but as of
today, such a check isn't performed in Cygwin.

I have the patch for this ready, but I found that it would potentially
break a couple of packages which have not set execute permissions on
some of their script files.

As you should know by now, setup for Cygwin 1.7 will set POSIX file
permissions for the files extracted from the tar archives.  That means,
all scripts which don't have execute permissions set, will also not have
execute permissions set after the user installed them.  That's bad.

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.

Corinna Vinschen:

  robots:			etc/postinstall/

Reini Urban:

  perl:     			usr/bin/cpan5.10.0

Christian Franke:

  ddrescue:			etc/postinstall/

Jari Aalto:

  colorgcc:			etc/postinstall/
  joe:				etc/postinstall/joe-manifest.lst

Frank Seelisch:

  singular-icons:		etc/postinstall/

Dave Korn:

  gcc-core:			etc/postinstall/
  gcc-gnat:			etc/postinstall/
  gcc-gdc:			etc/postinstall/
  gcc-gpc:			etc/postinstall/
  gcc-g++:			etc/postinstall/
  gcc-g77:			etc/postinstall/
  gcc-java:			etc/postinstall/

Yaakov S:

  perl-extutils-pkgconfig:	etc/postinstall/perl-ExtUtils-Pk
  libgnome2:			etc/preremove/
  gnome-vfs:			etc/preremove/
  ilibIDL:			etc/postinstall/
  libIDL2:			etc/postinstall/

Btw., DLLs should also be executable, otherwise applications will
fail to start.  I found one of them:

  glib:				usr/bin/cyggmodule-1-2-0.dll


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]