PR/34274: Brian A. Seklecki: Check for uustat before blindly executing since

it might not be there if uucp is not installed.
This commit is contained in:
christos 2006-08-30 18:06:09 +00:00
parent 79d3499096
commit fea3bc82d3
1 changed files with 2 additions and 2 deletions

View File

@ -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 ""