socat/SOURCES/socat-1.7.4.4-CVE-2024-54661.patch

23 lines
650 B
Diff

http://www.dest-unreach.org/socat/contrib/socat-secadv9.html
--- socat-1.8.0.1/readline.sh 2019-04-04 10:59:55.000000000 +0200
+++ socat-1.8.0.2/readline.sh 2024-12-06 11:44:17.376502570 +0100
@@ -22,9 +22,15 @@
else
HISTOPT=
fi
-mkdir -p /tmp/$USER || exit 1
#
#
-exec socat -d readline"$HISTOPT",noecho='[Pp]assword:' exec:"$PROGRAM",sigint,pty,setsid,ctty,raw,echo=0,stderr 2>/tmp/$USER/stderr2
+if test -w .; then
+ STDERR=./socat-readline.${1##*/}.log
+ rm -f $STDERR
+else
+ STDERR=/dev/null
+fi
+
+exec socat -d readline"$HISTOPT",noecho='[Pp]assword:' exec:"$PROGRAM",sigint,pty,setsid,ctty,raw,echo=0,stderr 2>$STDERR