X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=functions.sh;h=a818b344f13a56608a71a26a90612849f45c0dae;hb=01968242e3b13b6f0d59e35e612a824780927ab0;hp=93c98df4a50a09f55d7cd20829e8d89ad9a01ca1;hpb=36a474a7cab35a2686bac6c07d3fdd8040540a5b;p=carnet-tools-cn.git diff --git a/functions.sh b/functions.sh index 93c98df..a818b34 100644 --- a/functions.sh +++ b/functions.sh @@ -321,6 +321,7 @@ cp_db_get() { # by ddzeko, Tue, 05 Apr 2005 15:47:37 +0200 # - check is the script run by effective root cp_check_root() { + local euid euid=`awk 'BEGIN{print PROCINFO["euid"]}'` case "$euid" in 0) RET=y