projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f29ca38
)
initramfs: Escape colons in depfile
author
Michal Marek
<mmarek@suse.com>
Fri, 23 Sep 2016 07:56:05 +0000
(09:56 +0200)
committer
Michal Marek
<mmarek@suse.com>
Fri, 23 Sep 2016 08:35:32 +0000
(10:35 +0200)
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>
scripts/gen_initramfs_list.sh
patch
|
blob
|
blame
|
history
diff --git
a/scripts/gen_initramfs_list.sh
b/scripts/gen_initramfs_list.sh
index 17fa901418ae6a491ba61f3814a1143e2a62bfde..0055b07b03b68cafd0bc3c400ee23b686632efbf 100755
(executable)
--- 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