From 09e1b753345c0d32e0a6ffc354bc1cd629d8c6a4 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Fri, 1 Jul 2016 19:50:22 +0200 Subject: [PATCH] patchinstall.sh: Escape $ at the end of a string. --- patches/patchinstall.sh | 2 +- staging/patchinstall.sh.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 06e849e4..5517e476 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -1543,7 +1543,7 @@ else # Shifting by 62 bits is undefined behaviour when off_t is 32-bit, see also # https://launchpad.net/ubuntu/+source/autoconf/2.69-6 - the bug is still # present in some other distros (including Archlinux). - _large_off_old="^#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))$" + _large_off_old="^#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))\$" _large_off_new="#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))" sed -i'' -e "s|$_large_off_old|$_large_off_new|g" "$_file" unset _large_off_old _large_off_new diff --git a/staging/patchinstall.sh.in b/staging/patchinstall.sh.in index e9a773cb..527435bc 100644 --- a/staging/patchinstall.sh.in +++ b/staging/patchinstall.sh.in @@ -216,7 +216,7 @@ else # Shifting by 62 bits is undefined behaviour when off_t is 32-bit, see also # https://launchpad.net/ubuntu/+source/autoconf/2.69-6 - the bug is still # present in some other distros (including Archlinux). - _large_off_old="^#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))$" + _large_off_old="^#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))\$" _large_off_new="#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))" sed -i'' -e "s|$_large_off_old|$_large_off_new|g" "$_file" unset _large_off_old _large_off_new