Skip to content

Commit

Permalink
Fix nasa#999, propagate status code in OS_rmdir
Browse files Browse the repository at this point in the history
The status code from the low level implementation needs to
be returned from the caller, in case it was not OS_SUCCESS.
  • Loading branch information
jphickey committed May 11, 2021
1 parent 706f0de commit 9e85ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/shared/src/osapi-dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ int32 OS_rmdir(const char *path)
return_code = OS_TranslatePath(path, local_path);
if (return_code == OS_SUCCESS)
{
OS_DirRemove_Impl(local_path);
return_code = OS_DirRemove_Impl(local_path);
}

return return_code;
Expand Down

0 comments on commit 9e85ba9

Please sign in to comment.