diff options
author | mtm <mtm@FreeBSD.org> | 2003-07-24 18:17:21 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-07-24 18:17:21 +0000 |
commit | d82798033a21b0cd6572c99a4aaf6f62c860ce87 (patch) | |
tree | a49a6e2be5b5bb3ded077f95683cc470297c370d /etc/rc.subr | |
parent | 231d889e774d254fe6012576441a14a0598bc8ed (diff) | |
download | FreeBSD-src-d82798033a21b0cd6572c99a4aaf6f62c860ce87.zip FreeBSD-src-d82798033a21b0cd6572c99a4aaf6f62c860ce87.tar.gz |
Missing quotes around a variable. In this case we are only
evaluating the $_precmd command as a string. We're not actually
trying to evaluate the contents of the command.
Reported by: Glenn Johnson <gjohnson@srrc.ars.usda.gov>
Diffstat (limited to 'etc/rc.subr')
-rw-r--r-- | etc/rc.subr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.subr b/etc/rc.subr index 9610c88..87f9c4f 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -669,7 +669,7 @@ $command $rc_flags $command_args" # if the precmd failed and force # isn't set, exit # - if [ -n $_precmd ]; then + if [ -n "$_precmd" ]; then eval $_precmd _return=$? [ $_return -ne 0 ] && [ -z "$rc_force" ] && |