[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1474619740-3725-1-git-send-email-mmarek@suse.com>
Date: Fri, 23 Sep 2016 10:35:40 +0200
From: Michal Marek <mmarek@...e.com>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: linux-kernel@...r.kernel.org, sam@...nborg.org,
lede-dev@...ts.infradead.org, openwrt-devel@...ts.openwrt.org
Subject: [PATCH] initramfs: Escape colons in depfile
Special characters are problematic in depfiles, but we can fix colons
easily.
Reported-by: Florian Fainelli <f.fainelli@...il.com>
Signed-off-by: Michal Marek <mmarek@...e.com>
---
scripts/gen_initramfs_list.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh
index 17fa901418ae..0055b07b03b6 100755
--- a/scripts/gen_initramfs_list.sh
+++ b/scripts/gen_initramfs_list.sh
@@ -97,7 +97,10 @@ print_mtime() {
}
list_parse() {
- [ ! -L "$1" ] && echo "$1 \\" || :
+ if [ -L "$1" ]; then
+ return
+ fi
+ echo "$1" | sed 's/:/\\:/g; s/$/ \\/'
}
# for each file print a line in following format
--
2.6.6
Powered by blists - more mailing lists