Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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