Skip to content

Do not work on sb if it is uninitialized. - #495

Merged
millert merged 1 commit into
sudo-project:mainfrom
AZero13:sb
Dec 17, 2025
Merged

millert merged 1 commit into
sudo-project:mainfrom
AZero13:sb

Conversation

@AZero13

@AZero13 AZero13 commented Dec 17, 2025

Copy link
Copy Markdown
Contributor

lstat(path, &sb) == -1 can happen, leaving sb uninitialized. When this happens, we do not want to run S_ISLNK(sb.st_mode).

lstat(path, &sb) == -1 can happen, leaving sb uninitialized. When this happens, we do not want to run S_ISLNK(sb.st_mode).
@millert
millert merged commit fc8d67f into sudo-project:main Dec 17, 2025
4 checks passed
@AZero13
AZero13 deleted the sb branch December 17, 2025 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants