Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in GetHomeDirectories filesystem function #7705

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

josephsweeney
Copy link
Contributor

The function did not check whether the user had a directory so for
systems that have a NULL directory for a single user, this function
throws and exception. This checks that the directory exists before
accessing it.

The function did not check whether the `user` had a `directory` so for
systems that have a NULL directory for a single user, this function
throws and exception. This checks that the directory exists before
accessing it.
@josephsweeney josephsweeney requested review from a team as code owners July 27, 2022 14:02
@Smjert
Copy link
Member

Smjert commented Jul 29, 2022

Closing and reopening to get the CI fix.

@Smjert Smjert closed this Jul 29, 2022
@Smjert Smjert reopened this Jul 29, 2022
@Smjert Smjert merged commit 13556fd into osquery:master Aug 1, 2022
@Smjert Smjert deleted the joesweeney/debug branch August 1, 2022 15:02
@Smjert
Copy link
Member

Smjert commented Nov 18, 2022

For posterity, this was causing an exception when querying the launchd table, with a similar error:

E0726 09:57:47.335176 136299904 virtual_table.cpp:1006] Exception while executing table launchd: map:
 key not found

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.

3 participants