Again: bugs in contrib/solaris/opensshd.in and buildpkg.sh
j.petersen at msh.de
j.petersen at msh.de
Wed Oct 17 19:45:09 EST 2001
(Shame on me: wrong filename in last posting, now here are correct
diffs)
in contrib/solaris/ (openssh-SNAP-20011017.tar.gz)
1) buildpkg.sh makes wrong link for /etc/init.d/opensshd
2) /etc/init.d/opensshd has not-working killproc
here my version tested on Solaris 2.4 and 8
(no pgrep with solaris 2.4, XARGS was undefined, simpler
syntax)
Jörg
--- contrib/solaris/buildpkg.sh Fri Oct 12 22:30:53 2001
+++ contrib/solaris/buildpkg.sh Tue Oct 16 13:53:07 2001
@@ -40,9 +40,9 @@
../opensshd.in > $FAKE_ROOT/etc/init.d/opensshd
chmod 711 $FAKE_ROOT/etc/init.d/opensshd
-ln -s $FAKE_ROOT/etc/init.d/opensshd $FAKE_ROOT/etc/rcS.d/K30opensshd
-ln -s $FAKE_ROOT/etc/init.d/opensshd $FAKE_ROOT/etc/rc1.d/K30opensshd
-ln -s $FAKE_ROOT/etc/init.d/opensshd $FAKE_ROOT/etc/rc2.d/S98opensshd
+ln -s /etc/init.d/opensshd $FAKE_ROOT/etc/rcS.d/K30opensshd
+ln -s /etc/init.d/opensshd $FAKE_ROOT/etc/rc1.d/K30opensshd
+ln -s /etc/init.d/opensshd $FAKE_ROOT/etc/rc2.d/S98opensshd
--- contrib/solaris/opensshd.in Fri Oct 12 23:52:39 2001
+++ contrib/solaris/opensshd.in Wed Oct 17 10:49:00 2001
@@ -8,6 +8,7 @@
EGREP=/usr/bin/egrep
KILL=/usr/bin/kill
PS=/usr/bin/ps
+XARGS=/usr/bin/xargs
prefix=%%openSSHDir%%
etcdir=%%configDir%%
@@ -21,7 +22,7 @@
killproc() {
_procname=$1
_signal=$2
- ${PGREP} ${_procname} | ${HEAD} -1 | ${XARGS} -t -I {} ${KILL}
-${_signal} {}
+ ${PS} -u root|${AWK} '/'"$_procname"'$/ {print $1}'| ${XARGS} ${KILL}
-${_signal}
}
___________________________________________
Dr. Jörg Petersen <j.petersen at msh.de>
Medien System Haus Tel. 0711/72007-424
Plieninger Str. 150, D-70567 Stuttgart
More information about the openssh-unix-dev
mailing list