On 26/05/17 12:38, Florian Obser wrote:
On Fri, May 19, 2017 at 02:11:22PM -0300, Lucas Gabriel Vuotto wrote:
Previous patch shall be ignored, as it was an ugly hack. Below is a patch that
is simpler and fixes expandtilde instead, so it fixes the problem in other
situations (writing files to ~, for example). The only thing that I'm not sure
is whether to use getuid or geteuid. Any suggestion / explanation is welcome.
what is emacs doing in this case?
It reads HOME from environment (from lisp--arghhh) if the path is ~/foo, or
calls getpwnam if the path is ~user/foo.