Re: [dev] [PATCH] Check $HOME and home dir of $USER before getpwuid()->pw_dir

2016-06-03 Thread Christoph Lohmann
Greetings. On Fri, 03 Jun 2016 15:10:04 +0200 Reiner Herrmann wrote: > From: Dmitry Bogatov > > 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 `

[dev] [PATCH] Check $HOME and home dir of $USER before getpwuid()->pw_dir

2016-05-29 Thread Reiner Herrmann
From: Dmitry Bogatov 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: