This patch should resolve the Bug 108
(https://bugzilla.slind.org/bugzilla/show_bug.cgi?id=108): 'If you
invoke "slindctl setup" as root, it fails with a strange error after
several minutes.'

---
 slindctl |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/slindctl b/slindctl
index e357285..9ffbea7 100755
--- a/slindctl
+++ b/slindctl
@@ -126,6 +126,11 @@ if [ -z "$UID" ]; then
        UID=`id -u`
 fi

+#check that not running as root
+if [ "$UID" -eq 0 ]; then
+       die "don't invoke slindctl as root!"
+fi
+
 # Before we start, check if WORK_DIR is absolute.
 # That's a quite stupid test, in fact -- the path may start with "/",
 # but contain ".." and so on. However, as it does not exist yet, we can't
-- 
1.4.4.4

-- 
"La superstición trae mala suerte." - Raymond Smullyan
"Superstition brings bad luck." - Raymond Smullyan
_______________________________________________
slind-devel mailing list
[email protected]
http://lists.slind.org/cgi-bin/mailman/listinfo/slind-devel

Reply via email to