Fix setting of invocation-directory with --chdir and relative argv[0]
authorGlenn Morris <rgm@gnu.org>
Thu, 31 Oct 2013 07:18:42 +0000 (00:18 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 31 Oct 2013 07:18:42 +0000 (00:18 -0700)
commit8fd0741784e0cbaa3fd5b9c0c69bf3397818586b
tree584221edb58705ff7f3613f71424bf656a702388
parentbed64093f764c17050c71f2323f30c9a745769d9
Fix setting of invocation-directory with --chdir and relative argv[0]

* src/emacs.c (original_pwd): New char.
(main): If using --chdir, store original_pwd.
(init_cmdargs): When setting Vinvocation_directory based on a
relative argv[0], use original_pwd if set.

Fixes: debbugs:15768
src/ChangeLog
src/emacs.c