diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-17 04:01:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-17 04:01:14 +0100 |
commit | cb627578a344c874750e23e7eb59b1acc85aa639 (patch) | |
tree | e89fc6cd15c4b9a2af97553564bcd9d2a8a758a5 /sys-process/cronie/files | |
parent | accc284898c2b08d44aca3a4207c0e1c9fac05f5 (diff) |
gentoo auto-resync : 17:10:2023 - 04:01:13
Diffstat (limited to 'sys-process/cronie/files')
-rw-r--r-- | sys-process/cronie/files/cronie-1.7.0-optional-default-anacron.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-process/cronie/files/cronie-1.7.0-optional-default-anacron.patch b/sys-process/cronie/files/cronie-1.7.0-optional-default-anacron.patch new file mode 100644 index 000000000000..33cd1c79a72d --- /dev/null +++ b/sys-process/cronie/files/cronie-1.7.0-optional-default-anacron.patch @@ -0,0 +1,20 @@ +From ca1b98aaa79975376b729d7f4cc2e8bb2e5939b8 Mon Sep 17 00:00:00 2001 +From: Louis Sautier <sautier.louis@gmail.com> +Date: Sat, 14 Oct 2023 15:13:22 +0200 +Subject: [PATCH] anacron: only source /etc/default/anacron if it is readable, + fixes #159 + +Signed-off-by: Louis Sautier <sautier.louis@gmail.com> +--- a/contrib/0anacron ++++ b/contrib/0anacron +@@ -8,7 +8,9 @@ if [ `date +%Y%m%d` = "$day" ]; then + fi + + # Check whether run on battery should be allowed +-. /etc/default/anacron ++if test -r /etc/default/anacron; then ++ . /etc/default/anacron ++fi + + if [ "$ANACRON_RUN_ON_BATTERY_POWER" != "yes" ]; then + |