commit:     bf02831a7a59f5552c916dde7dd47296a7bce0b1
Author:     kmartin36 <Kevin.Martin <AT> gtri <DOT> gatech <DOT> edu>
AuthorDate: Fri Sep 15 01:29:27 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 19 22:57:19 2023 +0000
URL:        https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=bf02831a

dhcpcd: Fixing the handling of dhcpcd arguments with spaces

Bug: https://bugs.gentoo.org/881039
Signed-off-by: Kevin Martin <kevinmbecause <AT> gmail.com>
Fixes: bd8ff4aa89e1d56e9886dad32bb2406c8f43c747
Closes: https://github.com/gentoo/netifrc/pull/48
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net/dhcpcd.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/dhcpcd.sh b/net/dhcpcd.sh
index 6bd44ba..2493f27 100644
--- a/net/dhcpcd.sh
+++ b/net/dhcpcd.sh
@@ -90,8 +90,8 @@ dhcpcd_stop()
        eval opts=\$dhcp_${IFVAR}
        [ -z "${opts}" ] && opts=${dhcp}
        case " ${opts} " in
-               *" release "*) dhcpcd -k "${args}" "${IFACE}" ;;
-               *) dhcpcd -x "${args}" "${IFACE}" ;;
+               *" release "*) dhcpcd -k ${args} "${IFACE}" ;;
+               *) dhcpcd -x ${args} "${IFACE}" ;;
        esac
        [ -f "${argsfile}" ] && rm -f "${argsfile}"
        eend $?

Reply via email to