SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@
STRIP_OPT=@STRIP_OPT@
-PATHS= -D_PATH_SSH_PIDDIR=\"$(piddir)\" \
- -D_PATH_PRIVSEP_CHROOT_DIR=\"$(PRIVSEP_PATH)\"
+PATHS= -D_PATH_PRIVSEP_CHROOT_DIR=\"$(PRIVSEP_PATH)\"
CC=@CC@
LD=@LD@
/* Specify default $PATH */
#undef USER_PATH
-/* Specify location of ssh.pid */
-#undef _PATH_SSH_PIDDIR
-
/* Use IPv4 for connection by default, IPv6 can still if explicity asked */
#undef IPV4_DEFAULT
]
)
-# Where to place sshd.pid
-piddir=/var/run
-# make sure the directory exists
-if test ! -d $piddir ; then
- piddir=`eval echo ${sysconfdir}`
- case $piddir in
- NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
- esac
-fi
-
-AC_ARG_WITH(pid-dir,
- [ --with-pid-dir=PATH Specify location of ssh.pid file],
- [
- if test "x$withval" != "xno" ; then
- piddir=$withval
- if test ! -d $piddir ; then
- AC_MSG_WARN([** no $piddir directory on this system **])
- fi
- fi
- ]
-)
-
-AC_DEFINE_UNQUOTED(_PATH_SSH_PIDDIR, "$piddir")
-AC_SUBST(piddir)
-
dnl allow user to disable some login recording features
AC_ARG_ENABLE(lastlog,
[ --disable-lastlog disable use of lastlog even if detected [no]],
D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
-G=`eval echo ${piddir}` ; G=`eval echo ${G}`
H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
I=`eval echo ${user_path}` ; I=`eval echo ${I}`
J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
echo " Configuration files: $D"
echo " Askpass program: $E"
echo " Manual pages: $F"
-echo " PID file: $G"
echo " Privilege separation chroot path: $H"
if test "$USES_LOGIN_CONF" = "yes" ; then
echo " At runtime, sshd will use the path defined in /etc/login.conf"
#define BINDIR "/bin"
#define LIBEXEC "/libexec"
#define SSHDIR "/etc/ssh"
+#define VARDIR "/var"
#define STRINIT "init_pathnames() not called!"
char *_PATH_DH_MODULI = STRINIT;
char *_PATH_DH_PRIMES = STRINIT;
char *_PATH_SSH_PROGRAM = STRINIT;
+char *_PATH_SSH_DAEMON_PID_FILE = STRINIT;
char *_PATH_SSH_SYSTEM_RC = STRINIT;
char *_PATH_SSH_HOSTS_EQUIV = STRINIT;
char *_PATH_SFTP_SERVER = STRINIT;
_PATH_DH_MODULI = compose3(gl, SSHDIR, "/moduli");
_PATH_DH_PRIMES = compose3(gl, SSHDIR, "/primes");
_PATH_SSH_PROGRAM = compose3(gl, BINDIR, "/ssh");
+ _PATH_SSH_DAEMON_PID_FILE = compose3(gl, VARDIR, "/sshd.pid");
_PATH_SSH_SYSTEM_RC = compose3(gl, SSHDIR, "/sshrc");
_PATH_SSH_HOSTS_EQUIV = compose3(gl, SSHDIR, "/shosts.equiv");
_PATH_SFTP_SERVER = compose3(gl, LIBEXEC, "/sftp-server");
*/
void init_pathnames();
-#ifndef _PATH_SSH_PIDDIR
-#define _PATH_SSH_PIDDIR "/var/run"
-#endif
-
/*
* System-wide file containing host keys of known hosts. This file should be
* world-readable.
* The process id of the daemon listening for connections is saved here to
* make it easier to kill the correct daemon when necessary.
*/
-#define _PATH_SSH_DAEMON_PID_FILE _PATH_SSH_PIDDIR "/sshd.pid"
+extern char *_PATH_SSH_DAEMON_PID_FILE;
/*
* The directory in user\'s home directory in which the files reside. The
Subsystem sftp /usr/libexec/sftp-server
# where to store the pid of sshd process
-PidFile /var/run/sshd.pid
+#PidFile /var/run/sshd.pid