Skip to content

Commit

Permalink
mraa.c: Allow running mraa_init() as non root
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Le Foll <[email protected]>
  • Loading branch information
arfoll committed Jan 31, 2015
1 parent 019b0a5 commit baa1a0a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/mraa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit baa1a0a

Please sign in to comment.