提交 590abbdd 编写于 作者: M Michal Marek

initramfs: Escape colons in depfile

Special characters are problematic in depfiles, but we can fix colons
easily.
Reported-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NMichal Marek <mmarek@suse.com>
上级 f29ca38b
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册