diff options
author | 2001-07-01 17:17:48 +0000 | |
---|---|---|
committer | 2001-07-01 17:17:48 +0000 | |
commit | c272aff3ed3111504e87073f7b7143c1caca695a (patch) | |
tree | c74f7bad52b019a39fa0622ab60e1339c31915de /sys-apps/xinetd/files | |
parent | Added XML-Parser to dependencies (diff) | |
download | historical-c272aff3ed3111504e87073f7b7143c1caca695a.tar.gz historical-c272aff3ed3111504e87073f7b7143c1caca695a.tar.bz2 historical-c272aff3ed3111504e87073f7b7143c1caca695a.zip |
New stable release
A fix for a potential buffer overflow in the string handling library.
Diffstat (limited to 'sys-apps/xinetd/files')
-rw-r--r-- | sys-apps/xinetd/files/digest-xinetd-2.3.0 | 1 | ||||
-rwxr-xr-x | sys-apps/xinetd/files/xinetd-run-2.3.0 | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/sys-apps/xinetd/files/digest-xinetd-2.3.0 b/sys-apps/xinetd/files/digest-xinetd-2.3.0 new file mode 100644 index 000000000000..0204640db050 --- /dev/null +++ b/sys-apps/xinetd/files/digest-xinetd-2.3.0 @@ -0,0 +1 @@ +MD5 f9e4363a0838ae3e5065b1c0c2b307a8 xinetd-2.3.0.tar.gz diff --git a/sys-apps/xinetd/files/xinetd-run-2.3.0 b/sys-apps/xinetd/files/xinetd-run-2.3.0 new file mode 100755 index 000000000000..26fcefcbf0f1 --- /dev/null +++ b/sys-apps/xinetd/files/xinetd-run-2.3.0 @@ -0,0 +1,28 @@ +#!/bin/sh +#remove stale pid files +if [ -e /var/run/xinetd.pid ] +then + mypids="`cat /var/run/xinetd.pid`" + myrun=`/sbin/pidof xinetd` + ok=0 + for x in $mypids + do + if [ "$myrun" = "$x" ] + then + #this is a running xinetd process, pidfile ok + ok=1 + fi + done + if [ "$ok" = "0" ] + then + #bogus pidfile, remove + rm /var/run/xinetd.pid + fi +fi +if [ ! -e /var/run/xinetd.pid ] +then + /usr/sbin/xinetd -pidfile /var/run/xinetd.pid + /usr/bin/sleep 1 +fi +exec /usr/bin/watchpid `cat /var/run/xinetd.pid` + |