This is the mail archive of the cygwin-apps@cygwin.com 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]

base-files (/etc/profile.d) issue


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


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