mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
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>
This commit is contained in:
parent
f29ca38b6d
commit
590abbdd27
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user