From 91e1453fffdd19dafe2fe21ea04dae2035a84e00 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 3 Aug 2010 15:46:59 -0500 Subject: [PATCH] fix syslog function This fixes gentoo bug #328227. The syslog function in dhcpcd-run-hooks was not working if more than two arguments were passed to it. --- dhcpcd-run-hooks.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in index fbda2f0..521529b 100644 --- a/dhcpcd-run-hooks.in +++ b/dhcpcd-run-hooks.in @@ -133,9 +133,9 @@ syslog() local lvl="$1" [ -n "$lvl" ] && shift - if [ -n "$@" ]; then + if [ -n "$*" ]; then if type logger >/dev/null 2>&1; then - logger -t dhcpcd -p daemon."$lvl" -s "$@" + logger -t dhcpcd -p daemon."$lvl" -s "$*" fi fi } -- 1.7.1