Skip to content
Snippets Groups Projects
Commit c84fa4f8 authored by Erik von Reis's avatar Erik von Reis
Browse files

rtcds: build and install can no longer run from 'root'

parent 966693e0
No related branches found
No related tags found
1 merge request!274rtcds improvements
......@@ -4,6 +4,7 @@ Changes for NEXT
- Fixed bug in ADC read when IOP rate was slower than ADC rate.
- Fixed virtualIOP parameter. Virtual IOPs now build and run.
- Fixed bug that leads to incorrect ordering of calculations, adding unneeded latency.
- 'rtcds restart --all' fixed to also restart IOP model.
==================================================================================================
Changes for 4.2.3
==================================================================================================
......
......@@ -593,6 +593,10 @@ fi
case $cmd in
'build'|'make')
if [ "$EUID" -eq 0 ] ; then
log "*** Error: building as 'root' not allowed"
exit 2
fi
if [[ -n $ALL_FLAG ]] ; then
check_env
prep_buildd
......@@ -607,6 +611,10 @@ case $cmd in
fi
;;
'install')
if [ "$EUID" -eq 0 ] ; then
log "*** Error: Installing as 'root' not allowed"
exit 2
fi
if [[ -n $ALL_FLAG ]] ; then
check_env
prep_target
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment