base-files (/etc/profile.d) issue
Igor Pechtchanski
pechtcha@cs.nyu.edu
Tue Sep 2 01:39:00 GMT 2003
John,
A '/bin/find: /etc/profile.d: No such file or directory.' error was just
reported in <http://cygwin.com/ml/cygwin/2003-09/msg00061.html> on the
main Cygwin list. This means that the directory didn't get created, and
/etc/profile doesn't check for its existence before running find (the
previous syntax, 'for i in /etc/profile.d/*.sh', didn't have this
problem).
There are two solutions for this: a quick one is to include /etc/profile.d
into the tarball of the base-files package (so it always exists), and the
right one is to add an 'if [ -d /etc/profile.d ]; then ... fi' check
around the find invocation (there's no reason you can't do both, BTW).
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
More information about the Cygwin-apps
mailing list