summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDmitry Bogatov <KAction@gnu.org>2016-05-29 11:56:51 +0200
committerChristoph Lohmann <20h@r-36.net>2016-06-03 15:09:08 +0200
commit1308872b8bd7a2516d0626955abe391af076e711 (patch)
tree7a2d999c1aadb811e22fc2150d4033cb6ae3aa09 /config.h
parentf5e8baad06eafef22df12ab2649139260127d4e4 (diff)
downloadsurf-1308872b8bd7a2516d0626955abe391af076e711.tar.gz
surf-1308872b8bd7a2516d0626955abe391af076e711.tar.bz2
surf-1308872b8bd7a2516d0626955abe391af076e711.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 'config.h')
0 files changed, 0 insertions, 0 deletions