[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 6e50a5d 02/12: Create a root-owned file in ro
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 6e50a5d 02/12: Create a root-owned file in root's $HOME, not someone else's |
Date: |
Thu, 11 Jun 2020 20:58:32 -0400 (EDT) |
branch: master
commit 6e50a5d44419cdb9c10cdca8afdab0d047d389b7
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Create a root-owned file in root's $HOME, not someone else's
---
lmi_setup_21.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lmi_setup_21.sh b/lmi_setup_21.sh
index 3050bcd..d324fe8 100755
--- a/lmi_setup_21.sh
+++ b/lmi_setup_21.sh
@@ -77,9 +77,9 @@ chsh -s /bin/zsh "${NORMAL_USER}"
# Repair /usr/share/libtool/.../ltmain.sh as indicated here:
# https://lists.gnu.org/archive/html/libtool-patches/2011-06/msg00001.html
-# Do this as root because root owns the file.
+# Do this as root because root owns the file to be patched.
-cat >/home/"${NORMAL_USER}"/ltmain.sh.patch <<EOF
+cat >~/ltmain.sh.patch <<EOF
--- /usr/share/libtool/build-aux/ltmain.sh.orig 2016-08-20 12:34:31.000000000
+0000
+++ /usr/share/libtool/build-aux/ltmain.sh 2017-08-10 13:10:28.466155965 +0000
@@ -5555,7 +5555,7 @@
@@ -93,8 +93,8 @@ cat >/home/"${NORMAL_USER}"/ltmain.sh.patch <<EOF
# ifdef __STRICT_ANSI__
EOF
-patch --dry-run --strip=0 --directory=/
</home/"${NORMAL_USER}"/ltmain.sh.patch \
- && patch --strip=0 --directory=/ </home/"${NORMAL_USER}"/ltmain.sh.patch
+patch --dry-run --strip=0 --directory=/ <~/ltmain.sh.patch \
+ && patch --strip=0 --directory=/ <~/ltmain.sh.patch
# Enable stable and security upgrades--see:
# https://www.debian.org/releases/stretch/amd64/apds03.html.en#idm4504
- [lmi-commits] [lmi] master updated (df723ac -> 0331fca), Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 14ff0cb 01/12: Add a note about branching, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master c7016ba 05/12: Add all groups before adding any user, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 6e50a5d 02/12: Create a root-owned file in root's $HOME, not someone else's,
Greg Chicares <=
- [lmi-commits] [lmi] master 6a0b050 06/12: Refactor to make multi-user configuration easier, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master a75ef22 04/12: Extract blocks into sub-scripts #24, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 8bf7f0e 03/12: Extract block into sub-script #29, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 0331fca 12/12: Configure 'wine' for each user, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 4dcd8ee 08/12: Restrict permissions to 644 for home-directory files, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 9ef51ab 09/12: Configure all users, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 0d823ab 11/12: Merge 'lmi_setup_41.sh' into 'lmi_setup_40.sh', Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master bd371a2 10/12: Move git configuration, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master ad3d008 07/12: Simplify vim and zsh configuration, Greg Chicares, 2020/06/11