svn commit: r268098 - stable/10/usr.sbin/service

Xin LI delphij at FreeBSD.org
Tue Jul 1 15:50:34 UTC 2014


Author: delphij
Date: Tue Jul  1 15:50:34 2014
New Revision: 268098
URL: http://svnweb.freebsd.org/changeset/base/268098

Log:
  MFC r267493:
  
  Fix two issues:
  
   - Check for rc.d directory's existence before traversing
     it;
   - Don't output * when rc.d directory is empty.
  
  PR:		bin/190665
  Submitted by:	Oleg Ginzburg <olevole olevole ru> (with changes)

Modified:
  stable/10/usr.sbin/service/service.sh
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/service/service.sh
==============================================================================
--- stable/10/usr.sbin/service/service.sh	Tue Jul  1 15:36:05 2014	(r268097)
+++ stable/10/usr.sbin/service/service.sh	Tue Jul  1 15:50:34 2014	(r268098)
@@ -109,7 +109,7 @@ fi
 if [ -n "$LIST" ]; then
 	for dir in /etc/rc.d $local_startup; do
 		[ -n "$VERBOSE" ] && echo "From ${dir}:"
-		cd $dir && for file in *; do echo $file; done
+		[ -d ${dir} ] && /bin/ls -1 ${dir}
 	done
 	exit 0
 fi


More information about the svn-src-stable mailing list