Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Quick fix: define E_PAM_ERR in lib/pam_pass.c#1245

Merged
hallyn merged 1 commit into
shadow-maint:masterfrom
hallyn:2025-03-26/pamexit
Mar 26, 2025
Merged

Quick fix: define E_PAM_ERR in lib/pam_pass.c#1245
hallyn merged 1 commit into
shadow-maint:masterfrom
hallyn:2025-03-26/pamexit

Conversation

@hallyn
Copy link
Copy Markdown
Member

@hallyn hallyn commented Mar 26, 2025

The exit code situation is a hot mess. Do a
git grep "define.E_SUCCESS"
Each src/
.c is defining its own set of error codes, and they are frequently conflicting, e.g. more than one use 10.

We should probably have a common set defined in lib/exitcodes.h. I'm thinking for a first cut, we just move all the definitions from src/*.c to lib/exitcodes.h, and let the conflicts stand. If we later want to change some defines to make them unambiguous across the project, we can do that separately.

The exit code situation is a hot mess. Do a
  git grep "define.*E_SUCCESS"
Each src/*.c is defining its own set of error codes, and
they are frequently conflicting, e.g. more than one use
10.

We should probably have a common set defined in lib/exitcodes.h.
I'm thinking for a first cut, we just move all the definitions
from src/*.c to lib/exitcodes.h, and let the conflicts stand.
If we later want to change some defines to make them unambiguous
across the project, we can do that separately.

Signed-off-by: Serge Hallyn <[email protected]>
@hallyn hallyn merged commit 7e60522 into shadow-maint:master Mar 26, 2025
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.

1 participant