From da96e54116bc8e13dfae1bcb6aad361c56acfaa0 Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 14 Mar 2008 03:33:32 +0000 Subject: [PATCH] Yet more fixes to last large patch git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8293 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-common/lib.base | 6 +++++- Shorewall-common/shorewall | 10 +++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Shorewall-common/lib.base b/Shorewall-common/lib.base index 5cd4af1b3..6fdecc946 100644 --- a/Shorewall-common/lib.base +++ b/Shorewall-common/lib.base @@ -811,7 +811,11 @@ find_interface_by_address() { find_interface_by_mac() { local mac - mac=$1 first second rest dev + mac=$1 + local first + local second + local rest + local dev ip link list | while read first second rest; do case $first in diff --git a/Shorewall-common/shorewall b/Shorewall-common/shorewall index b60654526..fef631229 100755 --- a/Shorewall-common/shorewall +++ b/Shorewall-common/shorewall @@ -1300,7 +1300,15 @@ reload_command() # $* = original arguments less the command. export_command() # $* = original arguments less the command. { local verbose - verbose=$(make_verbose) file= finished=0 directory target compiler= + verbose=$(make_verbose) + local file + file= + local finished + finished=0 + local directory + local target + local compiler + compiler= while [ $finished -eq 0 -a $# -gt 0 ]; do option=$1