|
Lines 246-251
mips-sony-bsd|mips-sony-newsos4)
Link Here
|
| 246 |
AC_DEFINE(LOCKED_PASSWD_STRING, "*LK*") |
246 |
AC_DEFINE(LOCKED_PASSWD_STRING, "*LK*") |
| 247 |
# Pushing STREAMS modules will cause sshd to acquire a controlling tty. |
247 |
# Pushing STREAMS modules will cause sshd to acquire a controlling tty. |
| 248 |
AC_DEFINE(SSHD_ACQUIRES_CTTY) |
248 |
AC_DEFINE(SSHD_ACQUIRES_CTTY) |
|
|
249 |
external_path_file=/etc/default/login |
| 249 |
# hardwire lastlog location (can't detect it on some versions) |
250 |
# hardwire lastlog location (can't detect it on some versions) |
| 250 |
conf_lastlog_location="/var/adm/lastlog" |
251 |
conf_lastlog_location="/var/adm/lastlog" |
| 251 |
AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x) |
252 |
AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x) |
|
Lines 282-287
mips-sony-bsd|mips-sony-newsos4)
Link Here
|
| 282 |
AC_DEFINE(USE_PIPES) |
283 |
AC_DEFINE(USE_PIPES) |
| 283 |
AC_DEFINE(IP_TOS_IS_BROKEN) |
284 |
AC_DEFINE(IP_TOS_IS_BROKEN) |
| 284 |
AC_DEFINE(SSHD_ACQUIRES_CTTY) |
285 |
AC_DEFINE(SSHD_ACQUIRES_CTTY) |
|
|
286 |
external_path_file=/etc/default/login |
| 285 |
# /usr/ucblib/libucb.a no longer needed on ReliantUNIX |
287 |
# /usr/ucblib/libucb.a no longer needed on ReliantUNIX |
| 286 |
# Attention: always take care to bind libsocket and libnsl before libc, |
288 |
# Attention: always take care to bind libsocket and libnsl before libc, |
| 287 |
# otherwise you will find lots of "SIOCGPGRP errno 22" on syslog |
289 |
# otherwise you will find lots of "SIOCGPGRP errno 22" on syslog |
|
Lines 2146-2172
else
Link Here
|
| 2146 |
) |
2148 |
) |
| 2147 |
fi |
2149 |
fi |
| 2148 |
|
2150 |
|
| 2149 |
dnl BSD systems use /etc/login.conf so --with-default-path= has no effect |
2151 |
# check for /etc/default/login and use it if present. |
|
|
2152 |
AC_CHECK_FILE("/etc/default/login", [ external_path_file=/etc/default/login ]) |
| 2153 |
|
| 2154 |
if test "x$external_path_file" = "x/etc/default/login"; then |
| 2155 |
AC_DEFINE(HAVE_ETC_DEFAULT_LOGIN) |
| 2156 |
fi |
| 2157 |
|
| 2158 |
dnl BSD systems use /etc/login.conf for path, --with-default-path= has no effect |
| 2150 |
if test $ac_cv_func_login_getcapbool = "yes" -a \ |
2159 |
if test $ac_cv_func_login_getcapbool = "yes" -a \ |
| 2151 |
$ac_cv_header_login_cap_h = "yes" ; then |
2160 |
$ac_cv_header_login_cap_h = "yes" ; then |
| 2152 |
USES_LOGIN_CONF=yes |
2161 |
external_path_file=/etc/login.conf |
| 2153 |
fi |
2162 |
fi |
|
|
2163 |
|
| 2154 |
# Whether to mess with the default path |
2164 |
# Whether to mess with the default path |
| 2155 |
SERVER_PATH_MSG="(default)" |
2165 |
SERVER_PATH_MSG="(default)" |
| 2156 |
AC_ARG_WITH(default-path, |
2166 |
AC_ARG_WITH(default-path, |
| 2157 |
[ --with-default-path= Specify default \$PATH environment for server], |
2167 |
[ --with-default-path= Specify default \$PATH environment for server], |
| 2158 |
[ |
2168 |
[ |
| 2159 |
if test "$USES_LOGIN_CONF" = "yes" ; then |
2169 |
if ! test -z "$external_path_file" ; then |
| 2160 |
AC_MSG_WARN([ |
2170 |
AC_MSG_WARN([ |
| 2161 |
--with-default-path=PATH has no effect on this system. |
2171 |
--with-default-path=PATH has no effect on this system. |
| 2162 |
Edit /etc/login.conf instead.]) |
2172 |
Edit $external_path_file instead.]) |
| 2163 |
elif test "x$withval" != "xno" ; then |
2173 |
elif test "x$withval" != "xno" ; then |
| 2164 |
user_path="$withval" |
2174 |
user_path="$withval" |
| 2165 |
SERVER_PATH_MSG="$withval" |
2175 |
SERVER_PATH_MSG="$withval" |
| 2166 |
fi |
2176 |
fi |
| 2167 |
], |
2177 |
], |
| 2168 |
[ if test "$USES_LOGIN_CONF" = "yes" ; then |
2178 |
[ if test ! -z "$external_path_file" ; then |
| 2169 |
AC_MSG_WARN([Make sure the path to scp is in /etc/login.conf]) |
2179 |
AC_MSG_WARN([Make sure the path to scp is in $external_path_file]) |
| 2170 |
else |
2180 |
else |
| 2171 |
AC_TRY_RUN( |
2181 |
AC_TRY_RUN( |
| 2172 |
[ |
2182 |
[ |
|
Lines 2223-2229
main()
Link Here
|
| 2223 |
fi |
2233 |
fi |
| 2224 |
fi ] |
2234 |
fi ] |
| 2225 |
) |
2235 |
) |
| 2226 |
if test "$USES_LOGIN_CONF" != "yes" ; then |
2236 |
if test ! -z "$external_path_file" ; then |
| 2227 |
AC_DEFINE_UNQUOTED(USER_PATH, "$user_path") |
2237 |
AC_DEFINE_UNQUOTED(USER_PATH, "$user_path") |
| 2228 |
AC_SUBST(user_path) |
2238 |
AC_SUBST(user_path) |
| 2229 |
fi |
2239 |
fi |
|
Lines 2593-2600
echo " Askpass program
Link Here
|
| 2593 |
echo " Manual pages: $F" |
2603 |
echo " Manual pages: $F" |
| 2594 |
echo " PID file: $G" |
2604 |
echo " PID file: $G" |
| 2595 |
echo " Privilege separation chroot path: $H" |
2605 |
echo " Privilege separation chroot path: $H" |
| 2596 |
if test "$USES_LOGIN_CONF" = "yes" ; then |
2606 |
if test ! -z "$external_path_file"; then |
| 2597 |
echo " At runtime, sshd will use the path defined in /etc/login.conf" |
2607 |
echo " At runtime, sshd will use the path defined in $external_path_file" |
|
|
2608 |
echo " Make sure the path to scp is present, otherwise scp will not work" |
| 2598 |
else |
2609 |
else |
| 2599 |
echo " sshd default user PATH: $I" |
2610 |
echo " sshd default user PATH: $I" |
| 2600 |
fi |
2611 |
fi |