You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Describe the bug
The return value of
OS_DirRemove_Impl()
(the low level implementation) is not getting propagated back to the caller ofOS_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. TheOS_DirRemove_Impl()
function fails and returnsOS_ERROR
, but the application gets returnedOS_SUCCESS
.Expected behavior
Caller should get the error code, not
OS_SUCCESS
.Code snips
osal/src/os/shared/src/osapi-dir.c
Line 251 in 706f0de
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.
The text was updated successfully, but these errors were encountered: