Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return value of "OS_rmdir" implementation not being passed through #999

Closed
jphickey opened this issue May 11, 2021 · 0 comments · Fixed by #1000 or #1006
Closed

Return value of "OS_rmdir" implementation not being passed through #999

jphickey opened this issue May 11, 2021 · 0 comments · Fixed by #1000 or #1006
Assignees
Labels
Milestone

Comments

@jphickey
Copy link
Contributor

Describe the bug
The return value of OS_DirRemove_Impl() (the low level implementation) is not getting propagated back to the caller of OS_rmdir() as it should be.

To Reproduce
Call OS_rmdir() on a directory that shouldn't be removable, e.g. if it is not empty. The OS_DirRemove_Impl() function fails and returns OS_ERROR, but the application gets returned OS_SUCCESS.

Expected behavior
Caller should get the error code, not OS_SUCCESS.

Code snips

OS_DirRemove_Impl(local_path);

System observed on:
Ubuntu 20.04

Additional context
Noticed this when validating return codes in #331 and #981

Reporter Info
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey added the bug label May 11, 2021
@jphickey jphickey self-assigned this May 11, 2021
jphickey added a commit to jphickey/osal that referenced this issue May 11, 2021
The status code from the low level implementation needs to
be returned from the caller, in case it was not OS_SUCCESS.
astrogeco added a commit that referenced this issue May 12, 2021
Fix #999, propagate status code in OS_rmdir
pepepr08 pushed a commit to pepepr08/osal that referenced this issue Jun 9, 2021
The status code from the low level implementation needs to
be returned from the caller, in case it was not OS_SUCCESS.
@skliper skliper added this to the 6.0.0 milestone Sep 24, 2021
jphickey added a commit to jphickey/osal that referenced this issue Aug 10, 2022
jphickey pushed a commit to jphickey/osal that referenced this issue Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants