summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-process/systemd-cron/files/systemd-cron-1.15.19-default-mail-user.patch')
-rw-r--r--sys-process/systemd-cron/files/systemd-cron-1.15.19-default-mail-user.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/sys-process/systemd-cron/files/systemd-cron-1.15.19-default-mail-user.patch b/sys-process/systemd-cron/files/systemd-cron-1.15.19-default-mail-user.patch
deleted file mode 100644
index 420f68d81091..000000000000
--- a/sys-process/systemd-cron/files/systemd-cron-1.15.19-default-mail-user.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 525410d5dc2a7c33590d25d6c574dec7eb826ec1 Mon Sep 17 00:00:00 2001
-From: Richard Freeman <rich0@gentoo.org>
-Date: Mon, 25 Jul 2022 15:36:21 -0400
-Subject: [PATCH] Fix default user fallback.
-
-Signed-off-by: Richard Freeman <rich0@gentoo.org>
----
- src/bin/mail_on_failure.py | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/src/bin/mail_on_failure.py b/src/bin/mail_on_failure.py
-index 132eab9..dd2288f 100755
---- a/src/bin/mail_on_failure.py
-+++ b/src/bin/mail_on_failure.py
-@@ -26,7 +26,9 @@ user = subprocess.check_output(
- ['systemctl', 'show', args.unit, '--property=User'],
- universal_newlines=True)
- user = user.rstrip('\n')
--user = user.split('=')[1] if user else 'root'
-+user = user.split('=')[1]
-+if not user:
-+ user = 'root'
-
- mailto = user
- mailfrom = 'root'
---
-2.35.1
-