Skip to content
Snippets Groups Projects
Commit dc54e68d authored by Artem Polyakov's avatar Artem Polyakov Committed by David Bigagli
Browse files

Fix compilation warnings.

parent 07938b25
No related branches found
No related tags found
No related merge requests found
......@@ -442,13 +442,13 @@ int pmixp_fixrights(char *path, uid_t uid, mode_t mode)
snprintf(nested_path, sizeof(nested_path), "%s/%s", path,
ent->d_name);
if (_is_dir(nested_path)) {
if( rc = _file_fix_rights(nested_path, uid, mode) ){
if( (rc = _file_fix_rights(nested_path, uid, mode)) ){
PMIXP_ERROR_STD("cannot fix permissions for \"%s\"", nested_path);
return -1;
}
pmixp_rmdir_recursively(nested_path);
} else {
if( rc = _file_fix_rights(nested_path, uid, mode) ){
if( (rc = _file_fix_rights(nested_path, uid, mode)) ){
PMIXP_ERROR_STD("cannot fix permissions for \"%s\"", nested_path);
return -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment