[debian-edu-commits] [Git][debian-edu/debian-edu-config][bullseye] Use mktemp instead of deprecated tempfile. (Closes: #1005352).
Mike Gabriel (@sunweaver)
gitlab at salsa.debian.org
Fri Feb 11 20:54:56 GMT 2022
Mike Gabriel pushed to branch bullseye at Debian Edu / debian-edu-config
Commits:
24af5bb6 by Wolfgang Schweer at 2022-02-11T21:54:42+01:00
Use mktemp instead of deprecated tempfile. (Closes: #1005352).
Adjust etc/X11/Xsession-debian-edu, sbin/debian-edu-update-netblock,
share/debian-edu-config/tools/gosa-sync and testsuite/postoffice
Signed-off-by: Wolfgang Schweer <wschweer at arcor.de>
- - - - -
5 changed files:
- debian/changelog
- etc/X11/Xsession-debian-edu
- sbin/debian-edu-update-netblock
- share/debian-edu-config/tools/gosa-sync
- testsuite/postoffice
Changes:
=====================================
debian/changelog
=====================================
@@ -3,6 +3,12 @@ debian-edu-config (2.11.56+deb11u4) UNRELEASED; urgency=medium
[ Wolfgang Schweer ]
* etc/exim4/exim-ldap-server-v4.conf: Accept incoming mail from internal
network sent to root@<mynetwork-names>. (Closes: #1003727).
+ * Use mktemp instead of deprecated tempfile, adjust:
+ - etc/X11/Xsession-debian-edu
+ - sbin/debian-edu-update-netblock
+ - share/debian-edu-config/tools/gosa-sync
+ - testsuite/postoffice
+ (Closes: #1005352).
[ Mike Gabriel ]
* share/d-e-c/tools/gosa-modify-host: Only create Kerberos host and service
=====================================
etc/X11/Xsession-debian-edu
=====================================
@@ -70,7 +70,7 @@ ERRFILE=$HOME/.xsession-errors
# attempt to create an error file; abort if we cannot
if touch $ERRFILE 2> /dev/null && [ -w $ERRFILE ]; then
chmod 600 "$ERRFILE"
-elif ERRFILE=$(tempfile 2> /dev/null); then
+elif ERRFILE=$(mktemp 2> /dev/null); then
if ! ln -sf "$ERRFILE" "${TMPDIR:=/tmp}/xsession-$USER"; then
message "Xsession: unable to symlink \"$TMPDIR/xsession-$USER\" to" \
"\"$ERRFILE\"."
=====================================
sbin/debian-edu-update-netblock
=====================================
@@ -55,7 +55,7 @@ start_filtering() {
modprobe ip_tables
modprobe iptable_filter
- filterfile=$(tempfile)
+ filterfile=$(mktemp)
# We are the only filter firewall that should be in operation,
# so we flush all existing rules first. ... add others after
=====================================
share/debian-edu-config/tools/gosa-sync
=====================================
@@ -30,7 +30,7 @@ fi
## The new user password is in environment, $USERPASSWORD.
## Check if provided password corresponds to hash saved in ldap database:
-TMPFILE=$(tempfile)
+TMPFILE=$(mktemp)
trap "rm -f $TMPFILE" ERR SIGHUP SIGINT SIGTERM
cat <<EOF | tr -d "\n" > "$TMPFILE"
=====================================
testsuite/postoffice
=====================================
@@ -42,7 +42,7 @@ Regards,
EOF
-tmpfile=$(tempfile)
+tmpfile=$(mktemp)
smtpserver=postoffice.intern
if swaks --to postmaster at postoffice.intern --server $smtpserver > $tmpfile; then
echo "success: $0: SMTP to $smtpserver worked, email to postmaster sent."
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/24af5bb66495d8a1dc43e37e2846d74904afe7cd
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/24af5bb66495d8a1dc43e37e2846d74904afe7cd
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20220211/75e24515/attachment-0001.htm>
More information about the debian-edu-commits
mailing list