svn commit: r267493 - head/usr.sbin/service
Xin LI
delphij at FreeBSD.org
Sun Jun 15 05:07:01 UTC 2014
Author: delphij
Date: Sun Jun 15 05:07:01 2014
New Revision: 267493
URL: http://svnweb.freebsd.org/changeset/base/267493
Log:
Fix two issues:
- Check for rc.d directory's existence before traversing
it;
- Don't output * when rc.d directory is empty.
PR: conf/190665
Submitted by: Oleg Ginzburg <olevole olevole ru> (with changes)
MFC after: 2 weeks
Modified:
head/usr.sbin/service/service.sh
Modified: head/usr.sbin/service/service.sh
==============================================================================
--- head/usr.sbin/service/service.sh Sun Jun 15 05:01:35 2014 (r267492)
+++ head/usr.sbin/service/service.sh Sun Jun 15 05:07:01 2014 (r267493)
@@ -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-all
mailing list