svn commit: r524231 - in head/ports-mgmt/portmaster: . files
Stefan Esser
se at FreeBSD.org
Sun Jan 26 20:22:33 UTC 2020
Author: se
Date: Sun Jan 26 20:22:32 2020
New Revision: 524231
URL: https://svnweb.freebsd.org/changeset/ports/524231
Log:
Save the file with instructions how to restart portmaster after a failure
to non-world-writable directory.
Save this file in the user's home directory instead of in /tmp to prevent
a possible sym-link attack against the user.
PR: 233378
Submitted by: Robert Schulze
Approved by: antoine (implicit)
Modified:
head/ports-mgmt/portmaster/Makefile
head/ports-mgmt/portmaster/files/patch-portmaster
Modified: head/ports-mgmt/portmaster/Makefile
==============================================================================
--- head/ports-mgmt/portmaster/Makefile Sun Jan 26 20:12:08 2020 (r524230)
+++ head/ports-mgmt/portmaster/Makefile Sun Jan 26 20:22:32 2020 (r524231)
@@ -2,7 +2,7 @@
PORTNAME= portmaster
PORTVERSION= 3.19
-PORTREVISION= 23
+PORTREVISION= 24
CATEGORIES= ports-mgmt
MAINTAINER= se at FreeBSD.org
Modified: head/ports-mgmt/portmaster/files/patch-portmaster
==============================================================================
--- head/ports-mgmt/portmaster/files/patch-portmaster Sun Jan 26 20:12:08 2020 (r524230)
+++ head/ports-mgmt/portmaster/files/patch-portmaster Sun Jan 26 20:22:32 2020 (r524231)
@@ -43,6 +43,21 @@
echo "===>>> Done displaying pkg-message files" ; echo '' ) | $PAGER ;;
esac
+@@ -243,12 +245,12 @@ parent_exit () {
+ fi
+
+ if [ -n "$1" -a -n "${PM_NEEDS_UPDATE# }" -a -n "$PM_BUILDING" -a -z "$FETCH_ONLY" ]; then
+- echo "$progname <flags>${PM_NEEDS_UPDATE}" > ${TMPDIR}/portmasterfail.txt
++ echo "$progname <flags>${PM_NEEDS_UPDATE}" > ~/portmasterfail.txt
+ echo ''
+ echo "===>>> You can restart from the point of failure with this command line:"
+ echo " $progname <flags>${PM_NEEDS_UPDATE}"
+ echo ''
+- echo "This command has been saved to ${TMPDIR}/portmasterfail.txt"
++ echo "This command has been saved to ~/portmasterfail.txt"
+ echo ''
+ fi
+ }
@@ -260,7 +262,7 @@ safe_exit () {
parent_exit $1
else
More information about the svn-ports-all
mailing list