projects
/
carnet-upgrade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36a474a
)
r44: cp_check_root
author
Damir Dzeko
<Damir.Dzeko@CARNet.hr>
Tue, 5 Apr 2005 13:56:51 +0000
(13:56 +0000)
committer
Damir Dzeko
<Damir.Dzeko@CARNet.hr>
Tue, 5 Apr 2005 13:56:51 +0000
(13:56 +0000)
functions.sh
patch
|
blob
|
history
diff --git
a/functions.sh
b/functions.sh
index
93c98df
..
a818b34
100644
(file)
--- 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