From baa1a0ae03aca521d2fb5a3e043fe5ef02a52b36 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Sat, 31 Jan 2015 09:26:24 +0000 Subject: [PATCH] mraa.c: Allow running mraa_init() as non root Signed-off-by: Brendan Le Foll --- src/mraa.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/mraa.c b/src/mraa.c index f2d4c92ea..0e82ebba9 100644 --- a/src/mraa.c +++ b/src/mraa.c @@ -76,15 +76,6 @@ mraa_init() (proc_user != NULL) ? proc_user->pw_name : "", 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