From 0827a1ae4120b0fca3958f9f958e306f552b0c90 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 19 Apr 2020 06:08:50 +0000 Subject: [PATCH] Fix a wrong hardcoded path in some shadow programs. ticket #4632 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11811 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 11 +++++++++++ chapter06/shadow.xml | 11 ++++++++++- general.ent | 6 +++--- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index d763eb9f8..3b8687071 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,17 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2020-04-19 + + + [pierre] - Fix a wrong hardcoded path in some programs + from the shadow package. Fixes + #4632. + + + + 2020-04-15 diff --git a/chapter06/shadow.xml b/chapter06/shadow.xml index b052ab3ab..7fd621bdb 100644 --- a/chapter06/shadow.xml +++ b/chapter06/shadow.xml @@ -83,11 +83,20 @@ find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;Prepare Shadow for compilation: -./configure --sysconfdir=/etc --with-group-name-max-length=32 +touch /usr/bin/passwd +./configure --sysconfdir=/etc --with-group-name-max-length=32 The meaning of the configure option: + + touch /usr/bin/passwd + + The file /usr/bin/passwd needs + to exist because its location is harcoded in some programs, and + the default location if it does not exist is not right. + + --with-group-name-max-length=32 diff --git a/general.ent b/general.ent index 8b7e110ab..faa2fcc7a 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ - + - + - +