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]

Re: base-files: Does not permit the use of symlinks in /etc/profile.d/


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Max Bowsher on 9/16/2005 4:27 PM:
> The current /etc/profile does not permit the use of symlinks in
> /etc/profile.d/ - it ignores them.
> 
> Unfortunately, even if this was fixed in the package, existing installs
> wouldn't get fixed, because /etc/profile is handled via /etc/defaults :-(
> 
> /me gives up on finding a way for /sbin/alternatives to influence $MANPATH.

Here's my idea - add a /etc/profile/symlinkhandler.sh that detects whether
/etc/profile has been patched yet, and if not, source all the symlinks in
/etc/profile.  Now which package should provide that (alternatives vs.
base-files vs. something else), I'm not sure.  But you are also right that
base-files should be patched to source links to regular files as well as
regular files.  One idea is to change that the appropriate line in
/etc/default/etc/profile from 'if [ -f "${f}" ]' to 'if [ ! -d "$f/" ]'.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDLBfe84KuGfSFAYARAq/OAJ0ePSND3+dL3y2rfn/chQpUJMlowwCbBHcG
MHov4KjEgR1bUhz798rzyWQ=
=TS1v
-----END PGP SIGNATURE-----


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