Subject: misc/34274: daily(8) uustat(1) execute check for UUCP related binaries w/ mk.conf(5) UUCP=no
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 08/24/2006 15:20:00
>Number:         34274
>Category:       misc
>Synopsis:       daily(8) uustat(1) execute check for UUCP related binaries w/ mk.conf(5) UUCP=no
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 24 15:20:00 +0000 2006
>Originator:     Brian A. Seklecki
>Release:        3_STABLE i386
Collaborative Fusion, Inc.
NetBSD tracer 3.0_STABLE NetBSD 3.0_STABLE (CFRDMDROOT.MPACPI) #0: Sat Jun 17 01:16:42 EDT 2006  root@thunderwing:/home/nbsd/objdir/sys/arch/i386/compile/CFRDMDROOT.MPACPI i386

Because UUCP has been "modularized" with mk.conf(5) flags, it is no longer safe to assume UUCP related binaries are in the userland and in the default $PATH in /etc/daily.

Granted when running systems compiled/installed with UUCP=no, it is advisable to set check_uucp=no in daily.conf(5), however an additional checks at line 206 in daily(8) would not be very costly considering existing checks at line 295.

This is already done at line 295:

if checkyesno check_uucp && \
    [ -d /var/spool/uucp -a -f /usr/libexec/uucp/clean.daily ]; then

So a change line 206 from:

if checkyesno check_uucp && [ -d /var/spool/uucp ]; then


if checkyesno check_uucp && [ -d /var/spool/uucp -a -x /usr/bin/uustat]; then

(correct me if i'm wrong about the path here, I don't have UUCP on any of my existing systems)
Check your daily mails, see erroneous "ksh: uustat: not found":

From: 	Charlie Root <bofh@blah>
To: 	root@blah
Subject: tracer daily output for Wed Aug 23 03:15:00 EDT 2006
Date: 	Wed, 23 Aug 2006 03:15:00 -0400 (EDT)

Uptime:  3:15AM up 8 days, 16:43, 0 users, load averages: 0.06, 0.07, 0.08

Checking subsystem status:

Filesystem    Size      Used     Avail Capacity  iused    ifree  %iused  Mounted on
/dev/....     9.6M     8.2M      983K    89%     2681     2181    55%   

ksh: uustat: not found

Name          Ipkts  Ierrs      Opkts  Oerrs  Colls
fxp0         344210      0     108925      0      5
lo0             228      0        228      0      0
pflog0            0      0          0      0      0

See quick, dirty, easy one-line patch above.