Home page logo
/

bugtraq logo Bugtraq mailing list archives

check-ps 1.2 alpha 4 compile fix
From: dps () IO STARGATE CO UK (Duncan Simpson)
Date: Sun, 28 Jun 1998 19:48:30 +0200


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



It has come to my attention that various people have had trouble with PID_MAX
not being defined by the header file I assumed it was on their linux systems.
I guess this is just  punishment for taking 2.1.107 as typical.

Here is a new version of linux_killscan.h that fixes the problem. You want to
use the -c option to wipe out the previous version. Anything else anyone wants
fixed or added in 1.2alpha5 when it gets released?

There is a report the script discovers it is a linux system and then fails to
dipslay he extra information correctly. Could someone with a 2.0.x kernel
investigate (my system runs 2.1.107 and downgrading will hit various required
updates I have done).

#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 1998-06-28 19:39 BST by <dps () io>.
# Source directory was `/home/dps/check-ps-1.2'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    336 -r--r--r-- linux_killscan.h
#
touch -am 1231235999 $$.touch >/dev/null 2>&1
if test ! -f 1231235999 && test -f $$.touch; then
  shar_touch=touch
else
  shar_touch=:
  echo
  echo 'WARNING: not restoring timestamps.  Consider getting and'
  echo "installing GNU \`touch', distributed in GNU File Utilities..."
  echo
fi
rm -f 1231235999 $$.touch
#
# ============= linux_killscan.h ==============
if test -f 'linux_killscan.h' && test X"$1" != X"-c"; then
  echo 'x - skipping linux_killscan.h (file already exists)'
else
  echo 'x - extracting linux_killscan.h (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'linux_killscan.h' &&
/* $Id: linux_killscan.h,v 1.3 1998/06/28 18:33:13 dps Exp $ */
X
/* The following is known about linux */
#include <linux/tasks.h>
X
#define KILL_SCAN_WORKS 1
#ifdef PID_MAX
#define MAX_PROC PID_MAX
#else /* no PID_MAX */
/* Need to apply guesswork */
#define MAX_PROC 0x8000         /* Assumes this has stayed the same */
#endif /* PID_MAX */
SHAR_EOF
  $shar_touch -am 0628193398 'linux_killscan.h' &&
  chmod 0444 'linux_killscan.h' ||
  echo 'restore of linux_killscan.h failed'
  shar_count="`wc -c < 'linux_killscan.h'`"
  test 336 -eq "$shar_count" ||
    echo "linux_killscan.h: original size 336, current size $shar_count"
fi
exit 0



- --
Duncan (-:
"software industry, the: unique industry where selling substandard goods is
legal and you can charge extra for fixing the problems."



-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBNZaP+Eekq+3VXI08EQIr+gCdFzRh3dl9o7JUAslmjOuxWITfTtsAoLUo
L717PFhWccx1MY0TZWhL6mOb
=mPPv
-----END PGP SIGNATURE-----



  By Date           By Thread  

Current thread:
  • check-ps 1.2 alpha 4 compile fix Duncan Simpson (Jun 28)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault