Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly use chdir("/") instead of relying on ~user being set properly
On non-systemd systems if the user is changed manually, polkitd will also change directory. The homedir of the user might not be set correctly, so just change to /. This is a no-op on systemd systems, as the user is set in the unit file, so this code never runs.
- Loading branch information