summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.com>2016-09-23 09:56:05 +0200
committerMichal Marek <mmarek@suse.com>2016-09-23 10:35:32 +0200
commit590abbdd273304b55824bcb9ea91840ea375575d (patch)
treebef8196ccb10e53a33851e5fbce63be0e839de48 /scripts
parentppc: there is no clear_pages to export (diff)
downloadlinux-590abbdd273304b55824bcb9ea91840ea375575d.tar.xz
linux-590abbdd273304b55824bcb9ea91840ea375575d.zip
initramfs: Escape colons in depfile
Special characters are problematic in depfiles, but we can fix colons easily. Reported-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen_initramfs_list.sh5
1 files changed, 4 insertions, 1 deletions
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