Commit 590abbdd authored by Michal Marek's avatar Michal Marek

initramfs: Escape colons in depfile

Special characters are problematic in depfiles, but we can fix colons
easily.
Reported-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
parent f29ca38b
...@@ -97,7 +97,10 @@ print_mtime() { ...@@ -97,7 +97,10 @@ print_mtime() {
} }
list_parse() { 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 # for each file print a line in following format
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment