diff options
author | Michal Marek <mmarek@suse.com> | 2016-09-23 09:56:05 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-09-23 10:35:32 +0200 |
commit | 590abbdd273304b55824bcb9ea91840ea375575d (patch) | |
tree | bef8196ccb10e53a33851e5fbce63be0e839de48 /scripts | |
parent | f29ca38b6dd4fe2459e6b5f98690b9fe2dd86ff1 (diff) | |
download | linux-590abbdd273304b55824bcb9ea91840ea375575d.tar.bz2 |
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-x | scripts/gen_initramfs_list.sh | 5 |
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 |