void __ctsvc_create_rep_set_permission(const char *directory, mode_t mode)
{
if (-1 == access(directory, F_OK))
- mkdir(directory, mode);
+ if (mkdir(directory, mode) != 0)
+ ERR("failed to make new directory \n");
}
void __ctsvc_create_noti_file_set_permission(const char *file, mode_t mode)