[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 5586b08 2/3: Work around a "safety" feature o
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 5586b08 2/3: Work around a "safety" feature of 'patch' |
Date: |
Fri, 27 Sep 2019 21:00:38 -0400 (EDT) |
branch: master
commit 5586b08f48561ef3078a1c8c008231ac724364f7
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Work around a "safety" feature of 'patch'
Attempting to patch file
/usr/share/libtool/build-aux/ltmain.sh
now fails with:
Ignoring potentially dangerous file name
unless '--directory=/' is specified.
---
lmi_setup_21.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lmi_setup_21.sh b/lmi_setup_21.sh
index 6b274f0..6e6a7a1 100755
--- a/lmi_setup_21.sh
+++ b/lmi_setup_21.sh
@@ -74,8 +74,8 @@ cat >/home/greg/ltmain.sh.patch <<EOF
# ifdef __STRICT_ANSI__
EOF
-patch --dry-run --strip=0 </home/greg/ltmain.sh.patch \
- && patch --strip=0 </home/greg/ltmain.sh.patch
+patch --dry-run --strip=0 --directory=/ </home/greg/ltmain.sh.patch \
+ && patch --strip=0 --directory=/ </home/greg/ltmain.sh.patch
# Configure zsh, for root as well as the user configured above.