diff options
| author | christos <christos@NetBSD.org> | 2006-08-30 18:06:09 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2006-08-30 18:06:09 +0000 |
| commit | fea3bc82d3a67df113083afdb572b65dd2bca04c (patch) | |
| tree | 1f0c87742ace6249e4995bdbe37092b69568ff38 /etc | |
| parent | 79d349909645f12c11d853bd41b74fafd1fc8f0e (diff) | |
PR/34274: Brian A. Seklecki: Check for uustat before blindly executing since
it might not be there if uucp is not installed.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/daily | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/daily b/etc/daily index 5f71faa8918..08f95730e35 100644 --- a/etc/daily +++ b/etc/daily @@ -1,6 +1,6 @@ #!/bin/sh - # -# $NetBSD: daily,v 1.66 2006/05/27 08:56:47 jdolecek Exp $ +# $NetBSD: daily,v 1.67 2006/08/30 18:06:09 christos Exp $ # @(#)daily 8.2 (Berkeley) 1/25/94 # @@ -203,7 +203,7 @@ fi rm -f $TMP -if checkyesno check_uucp && [ -d /var/spool/uucp ]; then +if checkyesno check_uucp && [ -d /var/spool/uucp -a -x /usr/bin/uustat ]; then (cd /tmp; su -m uucp -c "uustat -a") > $TMP if [ -s $TMP ]; then echo "" |
