From 6d0d5066f32e1f6e44f108608b4b81e3083d3188 Mon Sep 17 00:00:00 2001 From: Lucy Phipps Date: Tue, 3 Oct 2023 01:36:29 +0100 Subject: [PATCH] remove smtpd from no-setuid-servers.patch --- packages/python/no-setuid-servers.patch | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/packages/python/no-setuid-servers.patch b/packages/python/no-setuid-servers.patch index e7cc8ce971c1d83..580b48d81eb7bb9 100644 --- a/packages/python/no-setuid-servers.patch +++ b/packages/python/no-setuid-servers.patch @@ -12,25 +12,3 @@ diff -uNr Python-3.9.2/Lib/http/server.py Python-3.9.2.mod/Lib/http/server.py os.dup2(self.rfile.fileno(), 0) os.dup2(self.wfile.fileno(), 1) os.execve(scriptfile, args, env) -diff -uNr Python-3.9.2/Lib/smtpd.py Python-3.9.2.mod/Lib/smtpd.py ---- Python-3.9.2/Lib/smtpd.py 2021-02-19 14:31:44.000000000 +0200 -+++ Python-3.9.2.mod/Lib/smtpd.py 2021-03-20 16:11:48.785629393 +0200 -@@ -9,7 +9,8 @@ - -n - This program generally tries to setuid `nobody', unless this flag is - set. The setuid call will fail if this program is not run as root (in -- which case, use this flag). -+ which case, use this flag). Ignored in Termux as no setuid done on this -+ platform. - - --version - -V -@@ -863,7 +864,7 @@ - - - class Options: -- setuid = True -+ setuid = False - classname = 'PureProxy' - size_limit = None - enable_SMTPUTF8 = False