aports/community/fetchmail/prevent-su.patch
2025-11-27 19:18:25 +00:00

14 lines
550 B
Diff

diff --git a/t.operation b/t.operation
index 472e8f5..5bd741a 100755
--- a/t.operation
+++ b/t.operation
@@ -57,7 +57,7 @@ chmod 700 "${CONFIG}"
# Run fetchmail
echo "Checking fetchmail operates"
unset LANG LANGUAGE
-LC_ALL=C FETCHMAILHOME=${WORKDIR} FETCHMAILUSER="" ./fetchmail -d0 -vvv -f "${CONFIG}" "${POP3_SERVER}"
+LC_ALL=C FETCHMAILHOME=${WORKDIR} FETCHMAILUSER="$(id -un)" ./fetchmail -d0 -vvv -f "${CONFIG}" "${POP3_SERVER}"
# TODO: Verify the test email was delivered to expected destination
echo "Checking test email was received"