Bug 518

Summary: _PATH_STDPATH can get redefined in includes.h if paths.h exists
Product: Portable OpenSSH Reporter: Ray Zuniga <rvz>
Component: Build systemAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: ix86   
OS: Linux   

Description Ray Zuniga 2003-03-25 04:54:08 AEDT
In versions of openssh 3.2.3p1 and later, the defines.h file was modified and
the following was added:

#ifdef HAVE_PATHS_H
#  include <paths.h> /* For _PATH_XXX */
#endif

Unfortunately the above comes after the inclusion of defines.h (through
config.h) which sets _PATH_STDPATH to USER_PATH if it has been defined in the
configure file.  The result of which resets _PATH_STDPATH back to the system
default and not what was computed during the configure run.

Once compiled, this results in execution failures if the command being run is
not located under the PATH of the system default _PATH_STDPATH.
Comment 1 Damien Miller 2003-05-15 18:58:09 AEST
I don't see this in the current code. includes.h includes paths.h fairly early
and pulls in defines.h very close to the end.

Can you confirm with CVS head or 3.6.1p2?
Comment 2 Ray Zuniga 2003-05-16 03:04:23 AEST
Yes this is no longer a problem in version 3.6.1p2.  I had no problems compiling
this time.
Comment 3 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED