From 154cbc6c9bc764cc9754a86bcf5e39044d86352e Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Mon, 30 Apr 2012 01:17:56 +0200 Subject: Fix handling of profilenames with spaces (FS#28522) This was the result of commit b6964 which said to fix FS#17406 by reverting to the subshell-less for-loop that is once again removed in this commit. The real fix to FS#17406 was commit c3276 to the initscripts repository. --- src/network | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/network') diff --git a/src/network b/src/network index ce5e962..ebf9ee6 100644 --- a/src/network +++ b/src/network @@ -37,7 +37,8 @@ load_profile() ## Take all registered profiles down. all_down() { - for prof in $(find "$STATE_DIR/profiles/" -maxdepth 1 -type f -printf '%f\n'); do + find "$STATE_DIR/profiles/" -maxdepth 1 -type f -printf '%f\n' \ + | while read prof; do profile_down "$prof" done } -- cgit v1.2.3-24-g4f1b