From 4aa6831f14175db6e3792cf84bb992fcfde832bd Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 24 Feb 2024 13:24:20 +0800 Subject: [PATCH] glibc: Don't "overwrite" libcrypt.so.1* when updating As we've already concluded, overwriting a shared object can crash running processes using code or data from this shared object. For example if gdm is crashed, we may leave the system unusable :(. --- chapter08/glibc.xml | 2 +- chapter08/libxcrypt.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 486164cf9..49eeceb1c 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -240,7 +240,7 @@ esac you MUST follow the note in Libxcrypt section to install libcrypt.so.1* - (overwritting + (replacing libcrypt.so.1 from the prior Glibc installation). diff --git a/chapter08/libxcrypt.xml b/chapter08/libxcrypt.xml index 7c6cc15ba..fb4c4adaa 100644 --- a/chapter08/libxcrypt.xml +++ b/chapter08/libxcrypt.xml @@ -110,7 +110,7 @@ --disable-static \ --disable-failure-tokens make -cp -av .libs/libcrypt.so.1* /usr/lib +cp -av --remove-destination .libs/libcrypt.so.1* /usr/lib