diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-10-11 19:12:20 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-10-11 19:12:20 +0000 |
commit | 2d0dd877729161133a64d8cec5f27227b3ceddde (patch) | |
tree | 0fc8f7fdbc7a540783ce51b38913672d3af7ae08 /usr.sbin/rcctl/rcctl.sh | |
parent | 64ffe1ef089dc99370ab31e6cddb38fd95c89632 (diff) |
Fix a small bug in rcctl status <daemon>:
If the daemon has default flags in its rc.d(8) script
but its flags are explicitly set to =" " in rc.conf.local(8),
the default flags were erroneously displayed. Show " " instead.
ok ajacoutot@
Diffstat (limited to 'usr.sbin/rcctl/rcctl.sh')
-rw-r--r-- | usr.sbin/rcctl/rcctl.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh index 5e17d31b596..d87e815afe1 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: rcctl.sh,v 1.42 2014/10/11 13:42:49 ajacoutot Exp $ +# $OpenBSD: rcctl.sh,v 1.43 2014/10/11 19:12:19 schwarze Exp $ # # Copyright (c) 2014 Antoine Jacoutot <ajacoutot@openbsd.org> # Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -118,7 +118,7 @@ svc_get_flags() fi fi [ -z "${daemon_flags}" ] && \ - daemon_flags="$(eval echo \${${_svc}_flags})" + daemon_flags="$(eval echo \"\${${_svc}_flags}\")" [ -z "${daemon_flags}" ] && \ daemon_flags="$(svc_default_enabled_flags ${_svc})" |