mirror of
git://slackware.nl/current.git
synced 2024-12-30 10:24:23 +01:00
b36863e097
a/util-linux-2.39.2-x86_64-2.txz: Rebuilt. Copy /etc/pam.d/login to /etc/pam.d/remote. This is needed for /bin/login's '-h' option, used (for example) by telnetd. If -h is used without /etc/pam.d/remote, pam will not be configured properly, and /etc/securetty will be ignored, possibly allowing root to login from a tty that is not considered secure. Of course, the usual disclaimers about the security of telnet/telnetd apply. Thanks to HytronBG and Petri Kaukasoina. (* Security fix *) ap/qpdf-11.6.3-x86_64-1.txz: Upgraded. d/llvm-17.0.3-x86_64-1.txz: Upgraded. l/libjpeg-turbo-3.0.1-x86_64-1.txz: Upgraded. l/tevent-0.16.0-x86_64-1.txz: Upgraded. n/samba-4.19.2-x86_64-1.txz: Upgraded. This update fixes bugs and a security issue: Heap buffer overflow with freshness tokens in the Heimdal KDC in Samba 4.19. For more information, see: https://www.cve.org/CVERecord?id=CVE-2023-5568 (* Security fix *) x/OpenCC-1.1.7-x86_64-1.txz: Upgraded. xfce/xfconf-4.18.2-x86_64-1.txz: Upgraded.
41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
config() {
|
|
NEW="$1"
|
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
|
# If there's no config file by that name, mv it over:
|
|
if [ ! -r $OLD ]; then
|
|
mv $NEW $OLD
|
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
|
# toss the redundant copy
|
|
rm $NEW
|
|
fi
|
|
# Otherwise, we leave the .new copy for the admin to consider...
|
|
}
|
|
|
|
# Keep same perms on rc.serial.new:
|
|
if [ -e etc/rc.d/rc.serial ]; then
|
|
cp -a etc/rc.d/rc.serial etc/rc.d/rc.serial.new.incoming
|
|
cat etc/rc.d/rc.serial.new > etc/rc.d/rc.serial.new.incoming
|
|
mv etc/rc.d/rc.serial.new.incoming etc/rc.d/rc.serial.new
|
|
fi
|
|
|
|
config etc/rc.d/rc.serial.new
|
|
config etc/rc.d/rc.setterm.new
|
|
config etc/serial.conf.new
|
|
|
|
for configfile in chfn.new chsh.new login.new remote.new runuser.new runuser-l.new su.new su-l.new ; do
|
|
if [ -r etc/pam.d/$configfile ]; then
|
|
config etc/pam.d/$configfile
|
|
fi
|
|
done
|
|
|
|
if [ -r etc/default/su.new ]; then
|
|
config etc/default/su.new
|
|
fi
|
|
|
|
# Since libmount has dropped all support for an /etc/mtab file, if we find that
|
|
# we'll need to replace it with a symlink to /proc/mounts:
|
|
if [ ! -L etc/mtab ]; then
|
|
rm -f etc/mtab
|
|
( cd etc ; ln -sf /proc/mounts mtab )
|
|
fi
|
|
|