Browse Source

check for executability of ssh-keygen

OPENBSD_2_6
deraadt 25 years ago
parent
commit
bba1f0e795
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc

+ 2
- 2
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.119 1999/10/07 04:41:07 deraadt Exp $
# $OpenBSD: rc,v 1.120 1999/10/07 05:11:19 deraadt Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -386,7 +386,7 @@ if [ -f /sbin/ldconfig ]; then
ldconfig $shlib_dirs ldconfig $shlib_dirs
fi fi
if [ ! -f /etc/ssh_host_key ]; then
if [ ! -f /etc/ssh_host_key -a -x /usr/bin/ssh-keygen ]; then
umask 022 umask 022
echo -n "ssh-keygen: generating new host key... " echo -n "ssh-keygen: generating new host key... "
if /usr/bin/ssh-keygen -q -b 1024 -f /etc/ssh_host_key -N ''; then if /usr/bin/ssh-keygen -q -b 1024 -f /etc/ssh_host_key -N ''; then


Loading…
Cancel
Save