2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

Warn the user if the rundir needs to be cleared in the rc files.

Neither AIX not HP-UX clear /var/run (if it even exists).
This commit is contained in:
Todd C. Miller 2014-02-04 15:14:48 -07:00
parent b1851f6936
commit 249becb1ac
2 changed files with 44 additions and 0 deletions

21
configure vendored
View File

@ -24522,6 +24522,27 @@ $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/p
;;
esac
fi
clear_rundir=0
case $host_os in
hpux*|aix*)
clear_rundir=1
;;
*)
case "$rundir" in
/var/run*)
;;
*)
clear_rundir=1
;;
esac
;;
esac
if test $clear_rundir -eq 1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: Warning: the $rundir/ts directory must be cleared at boot time." >&5
$as_echo "$as_me: Warning: the $rundir/ts directory must be cleared at boot time." >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: You may need to create a startup item to do this." >&5
$as_echo "$as_me: You may need to create a startup item to do this." >&6;}
fi

View File

@ -3809,6 +3809,29 @@ if test "$with_pam" = "yes"; then
;;
esac
fi
dnl
dnl AIX and HP-UX do not clear /var/run
dnl Also point out other non-cleared dirs
dnl
clear_rundir=0
case $host_os in
hpux*|aix*)
clear_rundir=1
;;
*)
case "$rundir" in
/var/run*)
;;
*)
clear_rundir=1
;;
esac
;;
esac
if test $clear_rundir -eq 1; then
AC_MSG_NOTICE([Warning: the $rundir/ts directory must be cleared at boot time.])
AC_MSG_NOTICE([ You may need to create a startup item to do this.])
fi
dnl
dnl Autoheader templates