PR/34274: Brian A. Seklecki: Check for uustat before blindly executing since trunk
authorchristos <christos@NetBSD.org>
Wed, 30 Aug 2006 18:06:09 +0000
branchtrunk
changeset 150227 741deba923c5
parent 150226 933314765d6f
child 150228 66fa752f831f
PR/34274: Brian A. Seklecki: Check for uustat before blindly executing since it might not be there if uucp is not installed.
etc/daily
--- a/etc/daily	Wed Aug 30 17:28:32 2006 +0000
+++ b/etc/daily	Wed Aug 30 18:06:09 2006 +0000
@@ -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 @@
 
 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 ""