char * dir = NULL;
struct passwd *userinfo = getpwuid(uid);
+ if (uid == 0) {
+ _LOGE("FAIL : Root is not allowed user! please fix it replacing with DEFAULT_USER");
+ return NULL;
+ }
if (uid != GLOBAL_USER) {
if (userinfo == NULL) {
_LOGE("getpwuid(%d) returns NULL !", uid);
char * dir = NULL;
struct passwd *userinfo = getpwuid(uid);
+ if (uid == 0) {
+ _LOGE("FAIL : Root is not allowed user! please fix it replacing with DEFAULT_USER");
+ return NULL;
+ }
if (uid != GLOBAL_USER) {
if (userinfo == NULL) {
_LOGE("getpwuid(%d) returns NULL !", uid);
char * dir = NULL;
struct passwd *userinfo = getpwuid(uid);
+ if (uid == 0) {
+ _LOGE("FAIL : Root is not allowed user! please fix it replacing with DEFAULT_USER");
+ return NULL;
+ }
if (uid != GLOBAL_USER) {
-
if (userinfo == NULL) {
_LOGE("getpwuid(%d) returns NULL !", uid);
return NULL;
char * dir = NULL;
struct passwd *userinfo = getpwuid(uid);
+ if (uid == 0) {
+ _LOGE("FAIL : Root is not allowed user! please fix it replacing with DEFAULT_USER");
+ return NULL;
+ }
if (uid != GLOBAL_USER) {
-
if (userinfo == NULL) {
_LOGE("getpwuid(%d) returns NULL !", uid);
return NULL;
char * dir = NULL;
struct passwd *userinfo = getpwuid(uid);
+ if (uid == 0) {
+ _LOGE("FAIL : Root is not allowed user! please fix it replacing with DEFAULT_USER");
+ return NULL;
+ }
if (uid != GLOBAL_USER) {
-
if (userinfo == NULL) {
_LOGE("getpwuid(%d) returns NULL !", uid);
return NULL;