slackware-current/testing/source/samba/doinst.sh
Patrick J Volkerding 201ae578a4 Fri Feb 3 20:04:33 UTC 2023
a/aaa_glibc-solibs-2.37-x86_64-2.txz:  Rebuilt.
a/e2fsprogs-1.46.6-x86_64-1.txz:  Upgraded.
a/hwdata-0.367-noarch-1.txz:  Upgraded.
l/glibc-2.37-x86_64-2.txz:  Rebuilt.
  [PATCH] Account for grouping in printf width (bug 23432).
  This issue could cause a overflow with sprintf in the corner case where an
  application computes the size of buffer to be exactly enough to fit the
  digits in question, but sprintf ends up writing a couple of extra bytes.
  Thanks to marav for the heads-up.
  For more information, see:
    https://www.cve.org/CVERecord?id=CVE-2023-25139
  (* Security fix *)
l/glibc-i18n-2.37-x86_64-2.txz:  Rebuilt.
l/glibc-profile-2.37-x86_64-2.txz:  Rebuilt.
l/libcap-2.67-x86_64-1.txz:  Upgraded.
l/poppler-data-0.4.12-noarch-1.txz:  Upgraded.
extra/php81/php81-8.1.15-x86_64-1.txz:  Upgraded.
testing/packages/samba-4.17.5-x86_64-2.txz:  Rebuilt.
  Build with the bundled Heimdal instead of the system MIT Kerberos, since MIT
  Kerberos has more issues when Samba is used as an AD DC. I'd appreciate any
  feedback on the "Samba on Slackware 15" thread on LQ about how well this
  works. Although it's not the sort of change I'd normally make in a -stable
  release such as Slackware 15.0, in this case I'm considering it if it can
  be done painlessly for any existing users... but I'll need to see some
  reports about this. I'd like to note that yes, of course we saw the
  "experimental" label in the configure flag we used to build Samba, but we
  also saw another prominent Linux distribution go ahead and use it anyway. :)
  And the Samba package built against MIT Kerberos cooked in the previous
  -current development cycle for a couple of years without any objections.
  Anyway, hopefully we'll get some testing from folks out there with networks
  that use AD and go from there.
  Thanks to Rowland Penny of the Samba team for clarifying this situation.
2023-02-03 21:35:10 +01:00

42 lines
1.4 KiB
Bash

#!/bin/sh
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...
}
preserve_perms() {
NEW="$1"
OLD="$(dirname ${NEW})/$(basename ${NEW} .new)"
if [ -e ${OLD} ]; then
cp -a ${OLD} ${NEW}.incoming
cat ${NEW} > ${NEW}.incoming
mv ${NEW}.incoming ${NEW}
fi
config ${NEW}
}
config etc/samba/lmhosts.new
preserve_perms etc/rc.d/rc.samba.new
# Commented out 2014-09-15 just in case we do need to change this.
## This won't be needed. The point here is to preserve the permissions of the existing
## file, if there is one. I don't see major new development happening in rc.samba... ;-)
#rm -f etc/rc.d/rc.samba.new
# Since /etc/samba/private/ has moved to /var/lib/samba/private, migrate any
# important files if possible:
if [ -d etc/samba/private -a -d var/lib/samba/private ]; then
for file in etc/samba/private/* ; do
if [ -r "$file" -a ! -r "var/lib/samba/private/$(basename $file)" ]; then
mv "$file" var/lib/samba/private
fi
done
# Might as well try to eliminate this directory, since it should be empty:
rmdir etc/samba/private 1> /dev/null 2> /dev/null
fi