Skip to content

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

Merged
millert merged 1 commit intosudo-project:mainfrom
SiliconA-Z:sb
Dec 17, 2025
Merged

Do not work on sb if it is uninitialized.#495
millert merged 1 commit intosudo-project:mainfrom
SiliconA-Z:sb

Conversation

@SiliconA-Z
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
@SiliconA-Z SiliconA-Z 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