Bug 518 - _PATH_STDPATH can get redefined in includes.h if paths.h exists
Summary: _PATH_STDPATH can get redefined in includes.h if paths.h exists
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: -current
Hardware: ix86 Linux
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-25 04:54 AEDT by Ray Zuniga
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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