diff options
author | P. J. McDermott <pjm@nac.net> | 2013-09-12 11:06:12 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-09-12 11:06:12 (EDT) |
commit | 46776de3f94ec6193d13047e6b60188485ec1eee (patch) | |
tree | 414db2ab63ddd484c64763b35e51b9713827d8e4 /patches | |
parent | e7866e7c9879411417635dbebe7e2a1b9c6b02ee (diff) |
Update patch to use quotes around expansions.
<https://sourceware.org/ml/libc-alpha/2013-09/msg00406.html>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/03_fix-bad-substitution.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/03_fix-bad-substitution.patch b/patches/03_fix-bad-substitution.patch index 8211614..17ec392 100644 --- a/patches/03_fix-bad-substitution.patch +++ b/patches/03_fix-bad-substitution.patch @@ -30,7 +30,7 @@ diff -Naur src.orig/libc/sysdeps/unix/make-syscalls.sh src/libc/sysdeps/unix/mak vdso_symbol="${vdso_syscall%@*}" vdso_symver="${vdso_syscall#*@}" - vdso_symver="${vdso_symver//./_}" -+ vdso_symver=`echo $vdso_symver | sed 's/\./_/g'` ++ vdso_symver=`echo "$vdso_symver" | sed 's/\./_/g'` echo "\ \$(foreach p,\$(sysd-rules-targets),\$(objpfx)\$(patsubst %,\$p,$file).os): \\ \$(..)sysdeps/unix/make-syscalls.sh\ @@ -43,14 +43,14 @@ diff -Naur src.orig/libc/sysdeps/unix/Makefile src/libc/sysdeps/unix/Makefile *@@*) \ - ver=$${call##*@}; call=$${call%%@*}; ver=$${ver//./_}; \ + ver=$${call##*@}; call=$${call%%@*}; \ -+ ver=`echo $ver | sed 's/\./_/g'`; \ ++ ver=`echo "$ver" | sed 's/\./_/g'`; \ echo "strong_alias (_no_syscall, __$${call}_$${ver})"; \ echo "versioned_symbol (libc, __$${call}_$${ver}, $$call, $$ver);"\ ;; \ *@*) \ - ver=$${call##*@}; call=$${call%%@*}; ver=$${ver//./_}; \ + ver=$${call##*@}; call=$${call%%@*}; \ -+ ver=`echo $ver | sed 's/\./_/g'`; \ ++ ver=`echo "$ver" | sed 's/\./_/g'`; \ echo "strong_alias (_no_syscall, __$${call}_$${ver})"; \ echo "compat_symbol (libc, __$${call}_$${ver}, $$call, $$ver);" \ ;; \ |