Skip to content

Commit

Permalink
Reorder some errors as an earlier patch changed too many entries to E…
Browse files Browse the repository at this point in the history
…NOTEMPTY

Signed-off-by: Ronnie Sahlberg <[email protected]>
  • Loading branch information
sahlberg committed Jan 10, 2024
1 parent e940763 commit 3f07293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,11 +1103,11 @@ int nterror_to_errno(uint32_t status) {
case SMB2_STATUS_FILE_IS_A_DIRECTORY:
case SMB2_STATUS_FILE_RENAMED:
case SMB2_STATUS_PROCESS_IS_TERMINATING:
case SMB2_STATUS_DIRECTORY_NOT_EMPTY:
return ENOTEMPTY;
case SMB2_STATUS_CANNOT_DELETE:
case SMB2_STATUS_FILE_DELETED:
return EPERM;
case SMB2_STATUS_DIRECTORY_NOT_EMPTY:
return ENOTEMPTY;
case SMB2_STATUS_NO_MORE_FILES:
return ENODATA;
case SMB2_STATUS_LOGON_FAILURE:
Expand Down

0 comments on commit 3f07293

Please sign in to comment.