[oe-commits] Jack Mitchell : crond: remove UID check in init script
git at git.openembedded.org
git at git.openembedded.org
Fri Oct 18 14:36:00 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: dd6a45536043af34c05a699e468cef4845f7affd
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=dd6a45536043af34c05a699e468cef4845f7affd
Author: Jack Mitchell <jmitchell at cbnl.com>
Date: Tue Oct 15 10:06:14 2013 +0100
crond: remove UID check in init script
this init script fails when the default shell is busybox sh. This
is because busybox sh doesn't set the UID. No other init scripts
in oecore feel the need to check the UID so just remove the check.
Signed-off-by: Jack Mitchell <jmitchell at cbnl.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-extended/cronie/cronie/crond.init | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/meta/recipes-extended/cronie/cronie/crond.init b/meta/recipes-extended/cronie/cronie/crond.init
index 08f34be..c8dffef 100755
--- a/meta/recipes-extended/cronie/cronie/crond.init
+++ b/meta/recipes-extended/cronie/cronie/crond.init
@@ -23,10 +23,6 @@ CONFIG=/etc/sysconfig/crond
case "$1" in
start)
- if [ $UID -ne 0 ] ; then
- echo "User has insufficient privilege."
- exit 1
- fi
echo -n "Starting crond: "
start-stop-daemon --start --quiet --exec $CROND -- $CRONDARGS
RETVAL=$?
@@ -37,10 +33,6 @@ case "$1" in
fi
;;
stop)
- if [ $UID -ne 0 ] ; then
- echo "User has insufficient privilege."
- exit 1
- fi
echo -n "Stopping crond: "
start-stop-daemon --stop --quiet --pidfile /var/run/crond.pid
RETVAL=$?
More information about the Openembedded-commits
mailing list