patch to fix rssh_chroot_helper location
Brought to you by:
xystrus
From: <rss...@as...> - 2004-05-25 06:55:29
|
The source, by default in v2.2.0, installs the rssh_chroot_helper in /usr/local/libexec/rssh_chroot_helper. However the pathname.h file that is built by configure has PATH_CHROOT_HELPER hard coded to /usr/local/bin/rssh_chroot_helper. It would be nice if pathname.h honored the --prefix config convention. It is reasonable to place rssh_chroot_helper under libexec somewhere. The following patch will cause pathname.h to be built with PATH_CHROOT_HELPER set under a libexec sub-directory. By default (without using --prefix) the PATH_CHROOT_HELPER is /usr/local/libexec/rssh_chroot_helper (which is where the Makefile actually installs rssh_chroot_helper now). The --prefix value is now honored. For example, if one does: ./configure --prefix=/usr then PATH_CHROOT_HELPER in pathname.h becomes: /usr/libexec/rssh_chroot_helper --- pathnames.h.in.init 2003-08-08 14:49:28.000000000 -0700 +++ pathnames.h.in 2004-05-24 23:20:34.000000000 -0700 @@ -43,7 +43,7 @@ #endif /* PATH_RSSH_CONFIG */ #ifndef PATH_CHROOT_HELPER -#define PATH_CHROOT_HELPER "/usr/local/bin/rssh_chroot_helper" +#define PATH_CHROOT_HELPER "@prefix@/libexec/rssh_chroot_helper" #endif /* PATH_CHROOT_HELPER */ #endif /* _rssh_pathnames_h */ chongo (http://www.isthe.com/chongo/index.html) /\oo/\ |