diff options
author | Dmitry Bogatov <KAction@gnu.org> | 2016-05-29 11:56:51 +0200 |
---|---|---|
committer | Quentin Rameau <quinq@fifth.space> | 2016-07-05 13:01:56 +0200 |
commit | cee8f0186ce3277add9b6a8ac07588be40f0f080 (patch) | |
tree | 237d094d90ca3497343b179e7a4d8c91b8f0e101 /TODO.md | |
parent | 3530d18d8ed04710d5e5a0bfbf6af948c59549bf (diff) | |
download | surf-cee8f0186ce3277add9b6a8ac07588be40f0f080.tar.gz surf-cee8f0186ce3277add9b6a8ac07588be40f0f080.tar.bz2 surf-cee8f0186ce3277add9b6a8ac07588be40f0f080.zip |
Check $HOME and home dir of $USER before getpwuid()->pw_dir
getpwnam(3) recommends to use $HOME instead of getpwuid()->pw_dir,
as it allows users to point programs to a different path.
Using getpwuid() also breaks namespaces-related use cases,
like `unshare -r`.
Patch was submitted by Dmitry Bogatov on the Debian bug tracker:
https://bugs.debian.org/825397
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to 'TODO.md')
0 files changed, 0 insertions, 0 deletions