X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fmain.c;h=aa0e9bcdcc6d7206bd71d80101ba56e205ae7a48;hb=61354a55ac2abd9e83e1f869cdb735654d6eb74a;hp=5d898ae6cffe3ed79537783892ce98cd0cf8934b;hpb=37c1f71d519420addb71c6137e551ecb51336f7c;p=src%2Fapp-framework-binder.git diff --git a/src/main.c b/src/main.c index 5d898ae6..aa0e9bcd 100644 --- a/src/main.c +++ b/src/main.c @@ -246,7 +246,7 @@ static void listenLoop (AFB_session *session) { fprintf (stderr, "hoops returned from infinite loop [report bug]\n"); } } - + /*--------------------------------------------------------- | main | Parse option and launch action @@ -510,7 +510,7 @@ int main(int argc, char *argv[]) { } // let's not take the risk to run as ROOT - if (getuid() == 0) goto errorNoRoot; + //if (getuid() == 0) goto errorNoRoot; // check session dir and create if it does not exist if (sessionCheckdir (session) != AFB_SUCCESS) goto errSessiondir; @@ -597,9 +597,9 @@ errorSetuid: fprintf (stderr,"\nERR:AFB-daemon Failed to change UID to username=[%s]\n\n", session->config->setuid); exit (-1); -errorNoRoot: - fprintf (stderr,"\nERR:AFB-daemon Not allow to run as root [use --seteuid=username option]\n\n"); - exit (-1); +//errorNoRoot: +// fprintf (stderr,"\nERR:AFB-daemon Not allow to run as root [use --seteuid=username option]\n\n"); +// exit (-1); errorPidFile: fprintf (stderr,"\nERR:AFB-daemon Failed to write pid file [%s]\n\n", session->config->pidfile);