mirror of
git://slackware.nl/current.git
synced 2024-12-31 10:28:29 +01:00
d88c750381
patches/packages/libxml2-2.9.14-x86_64-1_slack15.0.txz: Upgraded. This update fixes bugs and the following security issues: Fix integer overflow in xmlBuf and xmlBuffer. Fix potential double-free in xmlXPtrStringRangeFunction. Fix memory leak in xmlFindCharEncodingHandler. Normalize XPath strings in-place. Prevent integer-overflow in htmlSkipBlankChars() and xmlSkipBlankChars(). Fix leak of xmlElementContent. For more information, see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29824 (* Security fix *) patches/packages/mozilla-firefox-91.9.0esr-x86_64-1_slack15.0.txz: Upgraded. This is a bugfix release. For more information, see: https://www.mozilla.org/en-US/firefox/91.9.0/releasenotes/ patches/packages/samba-4.15.7-x86_64-1_slack15.0.txz: Upgraded. This is a bugfix release. For more information, see: https://www.samba.org/samba/history/samba-4.15.7.html
48 lines
940 B
Bash
48 lines
940 B
Bash
#!/bin/sh
|
|
#
|
|
# /etc/rc.d/rc.samba
|
|
#
|
|
# Start/stop/restart the Samba SMB file/print server.
|
|
#
|
|
# To make Samba start automatically at boot, make this
|
|
# file executable: chmod 755 /etc/rc.d/rc.samba
|
|
#
|
|
|
|
samba_start() {
|
|
if [ -x /usr/sbin/smbd -a -x /usr/sbin/nmbd -a -r /etc/samba/smb.conf ]; then
|
|
mkdir -p /var/run/samba
|
|
echo "Starting Samba: /usr/sbin/smbd -D"
|
|
/usr/sbin/smbd -D
|
|
echo " /usr/sbin/nmbd -D"
|
|
/usr/sbin/nmbd -D
|
|
elif [ ! -r /etc/samba/smb.conf ]; then
|
|
echo "ERROR: cannot start Samba since /etc/samba/smb.conf does not exist"
|
|
fi
|
|
}
|
|
|
|
samba_stop() {
|
|
killall smbd nmbd
|
|
}
|
|
|
|
samba_restart() {
|
|
samba_stop
|
|
sleep 2
|
|
samba_start
|
|
}
|
|
|
|
case "$1" in
|
|
'start')
|
|
samba_start
|
|
;;
|
|
'stop')
|
|
samba_stop
|
|
;;
|
|
'restart')
|
|
samba_restart
|
|
;;
|
|
*)
|
|
# Default is "start", for backwards compatibility with previous
|
|
# Slackware versions. This may change to a 'usage' error someday.
|
|
samba_start
|
|
esac
|
|
|