diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2024-04-21 21:41:34 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2024-04-21 23:59:55 +0200 |
commit | 62755e6ce193362360de379e16c8a3cc82d9abbb (patch) | |
tree | 719470705a6420dd134332a3118f5605a4860ba5 /source/a | |
parent | 189be804b3528e56c5830b47f94494ea89166bb6 (diff) | |
download | current-62755e6ce193362360de379e16c8a3cc82d9abbb.tar.gz current-62755e6ce193362360de379e16c8a3cc82d9abbb.tar.xz |
Sun Apr 21 21:41:34 UTC 202420240421214134
a/etc-15.1-x86_64-11.txz: Rebuilt.
Populate missing /etc/gshadow entries. Thanks to opty.
l/PyQt-builder-1.16.1-x86_64-1.txz: Upgraded.
l/python-pluggy-1.5.0-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/a')
-rw-r--r-- | source/a/etc/doinst.sh | 9 | ||||
-rwxr-xr-x | source/a/etc/etc.SlackBuild | 3 |
2 files changed, 10 insertions, 2 deletions
diff --git a/source/a/etc/doinst.sh b/source/a/etc/doinst.sh index 18b53f333..3734bc854 100644 --- a/source/a/etc/doinst.sh +++ b/source/a/etc/doinst.sh @@ -100,6 +100,15 @@ rm -f etc/gshadow.new rm -f etc/passwd.new rm -f etc/shadow.new +# We will add any missing entries to gshadow, but make no attempt to repair existing ones: +cat etc/group | while read line ; do + GRP="$(echo $line | cut -f 1 -d :)" + GMEMBERS="$(echo $line | rev | cut -f 1 -d : | rev)" + if ! grep -q "^${GRP}:" etc/gshadow ; then + echo "${GRP}:x::${GMEMBERS}" >> etc/gshadow + fi +done + # Make sure $HOME is correct for user sddm: chroot . /usr/sbin/usermod -d /var/lib/sddm sddm > /dev/null 2> /dev/null # Make sure that sddm is a member of group video: diff --git a/source/a/etc/etc.SlackBuild b/source/a/etc/etc.SlackBuild index 70455db93..f958d7628 100755 --- a/source/a/etc/etc.SlackBuild +++ b/source/a/etc/etc.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=etc VERSION=15.1 -BUILD=${BUILD:-10} +BUILD=${BUILD:-11} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -80,4 +80,3 @@ zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh # Build the package: cd $PKG /sbin/makepkg -l y -c n $TMP/etc-$VERSION-$ARCH-$BUILD.txz - |