Mail Archives: cygwin-developers/2002/11/03/17:09:20
--=-6rvIHDbYKJiuyWKYiCTE
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Mon, 2002-11-04 at 08:58, Christopher Faylor wrote:
> OTOH, one thing that we could do is only turn on executable bits that
> exist in the tar archives since those are still available.. We could
> have something which does a fixup only on extracted files which are
> supposed to be executable.
I'd rather extract the ntsec unix->win32 acl logic to a static library
that both cygwin1.dll and setup.exe can incorporate. If the translation
alters in a fundamental way, we can simply relink setup to get a new
version (and with careful thought we could even 'upgrade' all the acls
in the users tree to the new translated fashion when setup runs next).
Setup can track should-be-executable programs, and run a script with all
of them named, but IMO thats a kludge. Giving setup ntsec awareness
(with some additional 'when etc/passwd is missing do foo' logic) is a
generic solution.
=20
> >Do we know how those permissions are set? Are they set explicitly
> >by setup, or are they based on the inheritable permissions of the
> >parent directory (default)? If so having the "fixup script/program"=20
> >set the parent directory acl properly would be the way to go.
> >Users could control the permissions of new files (say choosing=20
> >between 777 and 755) by using the Windows GUI or setfacl to set
> >the default in the parent.=20
>=20
> Don't know. Maybe someone who is familiar with setup.exe can chime
> in.
I'd need to check. Corinna contributed some code a while ago IIRC.
Rob
--=20
---
GPG key available at: http://users.bigpond.net.au/robertc/keys.txt.
---
--=-6rvIHDbYKJiuyWKYiCTE
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQA9xZ6KI5+kQ8LJcoIRAjdoAKCpfMO0ZeGvGQQswhqruxhs6XlvfwCfTarw
j12ywCWW3S/paBsUSyICOr4=
=xVHw
-----END PGP SIGNATURE-----
--=-6rvIHDbYKJiuyWKYiCTE--
- Raw text -