Skip to content

Change buffer data type of uid and gid to integer when getpwuid and g… - #1

Open
streamvsriver wants to merge 1 commit into
DDNeu:mainfrom
streamvsriver:main
Open

Change buffer data type of uid and gid to integer when getpwuid and g…#1
streamvsriver wants to merge 1 commit into
DDNeu:mainfrom
streamvsriver:main

Conversation

@streamvsriver

Copy link
Copy Markdown

flaudit would crashed with Memory Segmentation fault when getpwuid/getgrgid could not return user/group mapping of uid/gid from the changelog as integer type.

Update the sprintf to output integer when getpwuid/getgrgid return null to honor the uid/gid from changelog record.

…etgrgid not find user/group name mapping from the local host, and return uid integer instead.
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