summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2005-10-01 20:58:03 +0000
committeryar <yar@FreeBSD.org>2005-10-01 20:58:03 +0000
commit1069404ea9a832875f130c97f7dbe1ebe0f767da (patch)
tree6e2fe5f0cff7ce324aa1b6f08c2fb36132249405 /etc
parent7b6a14399f75453f74995a8a8fb701cba9ae5f4a (diff)
downloadFreeBSD-src-1069404ea9a832875f130c97f7dbe1ebe0f767da.zip
FreeBSD-src-1069404ea9a832875f130c97f7dbe1ebe0f767da.tar.gz
Fix the usage of rc_usage. The rc_usage function takes
a list of possible keywords, not all them in a single argument. This also fixes the issue of extra delimiter characters appearing on the help line from rc.d scripts not setting $extra_commands.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.subr6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index 94944ab..36148a4 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -515,7 +515,7 @@ run_rc_command()
fi
if [ -z "$rc_arg" ]; then
- rc_usage "$_keywords"
+ rc_usage $_keywords
fi
if [ -n "$flags" ]; then # allow override from environment
@@ -797,7 +797,7 @@ $command $rc_flags $command_args"
;;
*)
- rc_usage "$_keywords"
+ rc_usage $_keywords
;;
esac
@@ -805,7 +805,7 @@ $command $rc_flags $command_args"
done
echo 1>&2 "$0: unknown directive '$rc_arg'."
- rc_usage "$_keywords"
+ rc_usage $_keywords
exit 1
}
OpenPOWER on IntegriCloud