Skip to content

Fix util clear directory#1121

Open
eivindjahren wants to merge 1 commit intomainfrom
fix_util_clear_directory
Open

Fix util clear directory#1121
eivindjahren wants to merge 1 commit intomainfrom
fix_util_clear_directory

Conversation

@eivindjahren
Copy link
Collaborator

@eivindjahren eivindjahren commented Feb 13, 2026

This should resolve https://github.com/equinor/resdata/security/code-scanning/6

Note that this is just an equivalent function call, but has different behavior when it is not have correct permissions. In that case you now get a failure where before you got a silent failure.

@eivindjahren eivindjahren force-pushed the fix_util_clear_directory branch from 363784d to b814384 Compare February 13, 2026 13:59
@eivindjahren eivindjahren moved this to Ready for Review in SCOUT Feb 13, 2026
Since TestArea would call with unlink_root equal to true,
strict_uid had no effect and is therefore equivalent to
std::filesystem::remove_all().
@eivindjahren eivindjahren force-pushed the fix_util_clear_directory branch from b814384 to 27b7b60 Compare February 13, 2026 14:00
@eivindjahren eivindjahren removed the status in SCOUT Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant