[polipo] Can polipo please use runuser rather then su in its cron jobs. (bz #804673)
Bernard Johnson
bjohnson at fedoraproject.org
Sun Dec 2 19:39:19 UTC 2012
commit ef25460b935d539512976ee4f7a2fbcc60bd2ec6
Author: Bernard Johnson <bjohnson at symetrix.com>
Date: Sun Dec 2 12:34:11 2012 -0700
Can polipo please use runuser rather then su in its cron jobs. (bz #804673)
polipo.cron | 2 +-
polipo.spec | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/polipo.cron b/polipo.cron
index 63ef4a3..5d13002 100755
--- a/polipo.cron
+++ b/polipo.cron
@@ -25,7 +25,7 @@ if [ -f "$PIDFILE" ]; then
# Allow some time for polipo to perform the requested flush
sleep 2
# Since f17, the following su command prints "...killed." to stdout ???
- su -s /bin/sh -c \
+ runuser -s /bin/sh -c \
"nice polipo -x -c $CONFIG_FILE forbiddenFile=$FORBIDDEN_FILE > /dev/null" \
polipo
# Instruct polipo to to discard its in-memory cache (signal USR2)
diff --git a/polipo.spec b/polipo.spec
index f977dcf..a747e18 100644
--- a/polipo.spec
+++ b/polipo.spec
@@ -152,6 +152,7 @@ fi
- removed _with_systemd build capability since it's now default, removed all
init infrastructure
- removed _with_tmpfilesd infrastructure
+- Can polipo please use runuser rather then su in its cron jobs. (bz #804673)
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.4.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list