ret = getgrnam_r("users", &grpinfo, grpbuf, grpbufsize, &grpresult);
if((ret == 0) && (grpresult != NULL)) {
- MSAPI_DBG_ERR("getgrnam_r users success...\n");
+ MSAPI_DBG("getgrnam_r users success...\n");
} else {
MSAPI_DBG_ERR("getgrnam_r users failed ret[%d]", ret);
goto END;
if (uid == getuid()) {
if (MS_STRING_VALID(MEDIA_DB_NAME)) {
- MSAPI_DBG_ERR("MS_STRING_VALID MEDIA_DB_NAME valid...\n");
+ MSAPI_DBG("MS_STRING_VALID MEDIA_DB_NAME valid...\n");
result_passwd = strdup(MEDIA_DB_NAME);
} else {
MSAPI_DBG_ERR("MS_STRING_VALID MEDIA_DB_NAME invalid...\n");
ret = getpwuid_r(uid, &pwdinfo, pwdbuf, pwdbufsize, &pwdresult);
if((ret == 0) && (pwdresult != NULL)) {
- MSAPI_DBG_ERR("getpwuid uid[%d] success\n", uid);
+ MSAPI_DBG("getpwuid uid[%d] success\n", uid);
} else {
MSAPI_DBG_ERR("getpwuid uid[%d] failed ret[%d]", uid, ret);
MS_SAFE_FREE(pwdbuf);
goto END;
}
- MSAPI_DBG_ERR("grpinfo.gr_gid[%d], pwdinfo.pw_gid[%d]", grpinfo.gr_gid, pwdinfo.pw_gid);
+ MSAPI_DBG("grpinfo.gr_gid[%d], pwdinfo.pw_gid[%d]", grpinfo.gr_gid, pwdinfo.pw_gid);
if(grpinfo.gr_gid != pwdinfo.pw_gid) {
MSAPI_DBG_ERR("UID [%d] does not belong to 'users' group![%d][%d]", uid, grpinfo.gr_gid, pwdinfo.pw_gid);
MS_SAFE_FREE(pwdbuf);
if ((recv_msg_size = read(sockfd, &recv_msg, sizeof(ms_comm_msg_s))) < 0) {
MSAPI_DBG_STRERROR("recv failed");
- req_result.pid = -1;
- req_result.result = MS_MEDIA_ERR_SOCKET_RECEIVE;
- req_result.complete_path = NULL;
- req_result.request_type = -1;
- goto ERROR;
+ return FALSE;
}
req_result.pid = recv_msg.pid;