home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / cops_104.zip / cops_104 / bug.chk.aix < prev    next >
Text File  |  1992-03-10  |  1KB  |  54 lines

  1. #!/bin/sh
  2. #
  3. #  IBM/AIX module for bug/vulnerability checking
  4. #
  5. ECHO=/bin/echo
  6. TEST=/bin/test
  7. LS=/bin/ls
  8. LS_OPTS="-slagL"
  9. ARCH=/bin/arch
  10. GREP=/bin/grep
  11. AWK=/bin/awk
  12. BUG="$AWK -f ./bug_cmp"
  13.  
  14. if $TEST ! -f ./bug_cmp ; then
  15.     $ECHO "Must have bug compare module, ./bug_cmp, to run..."
  16.     exit 2
  17.     fi
  18. # what is the date?  We just need the month and year...
  19. # Format: Fri Feb  7 14:16:55 PST 1992
  20. if $TEST $# -eq "2" ; then
  21.         real_date="$1 $2"
  22. else
  23.         real_date=`$DATE | $AWK '{print $2, $NF}'`
  24.         fi
  25.  
  26. # tftpd
  27. #
  28. #
  29. # Fixed in version "1.13.1.3" (do a "what /etc/tftpd")
  30. tftpd="/etc/tftpd"
  31. fix_date="17 Oct 1991"
  32. cert_advis="CA-91:19"
  33. #  IBM says to do this; I'm going to go by date, because if I search
  34. # for a specific version, I'll be screwed when they change it.
  35. # `what /etc/tftpd`
  36. if $TEST -f "$tftpd" ; then
  37.     cur_date=`$LS $LS_OPTS $tftpd | $AWK '{print $8, $7, $9}'`
  38.     $ECHO $tftpd $fix_date $cur_date $cert_advis $real_date | $BUG
  39.     fi
  40.  
  41. # /usr/etc/rpc.rexd
  42. #
  43. #
  44. rexd="/usr/etc/rcp.rexd"
  45. fix_date="5 Mar 1992"
  46. cert_advis="CA-92:5"
  47. #
  48. if $TEST -f "$rexd" ; then
  49.     cur_date=`$LS $LS_OPTS $rexd | $AWK '{print $8, $7, $9}'`
  50.     $ECHO $rexd $fix_date $cur_date $cert_advis $real_date | $BUG
  51.     fi
  52.  
  53. # finis
  54.