From 0868a57db06c0b5c3b691ae4166caf259d4912b8 Mon Sep 17 00:00:00 2001 From: Doug Barton Date: Sat, 10 Dec 2005 20:19:08 +0000 Subject: [PATCH] Silence a warning about empty directories in all the places it might occur. Reminded by: yar --- etc/rc.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.subr b/etc/rc.subr index 76784803c3a6..7c77cc801f7d 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -1380,7 +1380,7 @@ find_local_scripts_new () { local_rc='' for dir in ${local_startup}; do if [ -d "${dir}" ]; then - for file in `grep -l '^# PROVIDE:' ${dir}/*`; do + for file in `grep -l '^# PROVIDE:' ${dir}/* 2>/dev/null`; do case "$file" in *.sample) ;; *) if [ -x "$file" ]; then