-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbug.chk.next
More file actions
executable file
·82 lines (74 loc) · 1.96 KB
/
bug.chk.next
File metadata and controls
executable file
·82 lines (74 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
:
#
# NeXT module for bug/vulnerability checking
#
ECHO=/bin/echo
TEST=test
LS=/bin/ls
LS_OPTS2="g"
LS_OPTS="-slaL$LS_OPTS2"
ARCH=/bin/arch
GREP=/bin/grep
AWK=/bin/awk
DATE=/bin/date
BUG="$AWK -f ./bug_cmp"
word_smithing="could have a hole/bug"
if $TEST ! -f ./bug_cmp ; then
$ECHO "Must have bug compare module, ./bug_cmp, to run..."
exit 2
fi
# what is the date? We just need the month and year...
# Format: Fri Feb 7 14:16:55 PST 1992
real_date=`$DATE | $AWK '{print $2, $NF}'`
THIS_YEAR=`$DATE | $AWK '{print $NF}'`
# /usr/etc/restore0.9
#
restore=/usr/etc/restore0.9
(./is_able $restore s s | $GREP SUID )> /dev/null 2>/dev/null
if $TEST $? -eq "0" ; then
$ECHO "Warning! $restore $word_smithing! (CA-90:06a)"
fi
# npd (printer problem)
#
# NeXT machines running 1.0 and 1.0a
npd="/usr/lib/NextPrinter/npd"
fix_date="3 Oct 1990"
cert_advis="CA-90:06a"
if $TEST -f "$npd" ; then
cur_date=`$LS $LS_OPTS $npd | $AWK '{if (index($9, ":")) print $8,$7, '"$THIS_YEAR"' ; else print $8,$7,$9}'`
$ECHO $npd $fix_date $cur_date $cert_advis $real_date | $BUG
fi
# /NextApps/BuildDisk
#
# NeXT machines running 1.0 and 1.0a
#
# FIX -- "chmod 4700 /NextApps/BuildDisk"
#
build_disk="/NextApps/BuildDisk"
fix_date="3 Oct 1990"
cert_advis="CA-90:06a"
#
# Can anyone execute it?
($LS $LS_OPTS $build_disk | $GREP ...x..x..x ) > /dev/null 2>/dev/null
# if so, check date, etc...
if $TEST $? -eq "0" ; then
cur_date=`$LS $LS_OPTS $build_disk | $AWK '{if (index($9, ":")) print $8,$7, '"$THIS_YEAR"' ; else print $8,$7,$9}'`
$ECHO "Warning! $build_dist $word_smithing! ($cert_advis)"
fi
# /private/etc
#
# NeXT machines running 2.0 and 2.1
#
# FIX -- chmod g-w /private/etc
#
private="/private/etc"
fix_date="14 May 1991"
cert_advis="CA-91:06"
#
# Can group write to it?
(cd /private ; $LS $LS_OPTS -d etc | $GREP drwx..w... ) > /dev/null 2>/dev/null
# if so, check date, etc...
if $TEST $? -eq "0" ; then
$ECHO "Warning! $private $word_smithing! ($cert_advis)"
fi
# finis