Date: Sun, 15 Jun 2014 05:07:01 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267493 - head/usr.sbin/service Message-ID: <201406150507.s5F571Fc009856@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406150507.s5F571Fc009856>