Private
Public Access
2
0

mraa.c: Allow running mraa_init() as non root

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-01-31 09:26:24 +00:00
parent 019b0a5e7e
commit baa1a0ae03

View File

@@ -76,15 +76,6 @@ mraa_init()
(proc_user != NULL) ? proc_user->pw_name : "<unknown>",
proc_euid);
if (proc_euid != 0) {
char *err_msg = "mraa: FATAL error, "
"libmraa program must be run as root (EUID 0), "
"cannot proceed\n";
syslog(LOG_ERR, "%s", err_msg);
fprintf(stderr, "%s", err_msg);
return MRAA_ERROR_PLATFORM_NOT_INITIALISED;
}
#ifdef SWIGPYTHON
// Initialise python threads, this allows use to grab the GIL when we are
// required to do so