From 489b7f61fa5cb04fb7aa8408e1b232eefb6044f2 Mon Sep 17 00:00:00 2001 From: Josip Rodin Date: Sat, 10 Oct 2009 14:12:50 +0200 Subject: [PATCH] premjestio remoteStart evasion na prikladnije mjesto --- imunes | 3 --- imunes.tcl | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/imunes b/imunes index 8377e7d..595ba99 100755 --- a/imunes +++ b/imunes @@ -38,9 +38,6 @@ LIBDIR="" imunes=$ROOTDIR/$LIBDIR/imunes.tcl -# zbog testiranja lokalnog Linuxa ne zelimo automatski remoteStart -test `id -u` = 0 || { echo 'you are not root (id != 0)'; exit 1; } - case $1 in -b | --batch) exec tclsh8.4 $imunes "$@" diff --git a/imunes.tcl b/imunes.tcl index 30c0830..6968c7d 100755 --- a/imunes.tcl +++ b/imunes.tcl @@ -266,6 +266,11 @@ if { $gui_unix && $::env(USERNAME) == "root" } { set remote_exec false } +# zbog testiranja lokalnog Linuxa ne zelimo automatski remoteStart +if { $gui_unix && $gui_linux && $remote_exec } { + puts "you are not root (id != 0) but for our purposes you have to be" + exit 1 +} # # Read config files, the first one found: .imunesrc, $HOME/.imunesrc -- 2.39.5