diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-06-26 04:39:42 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-06-26 04:39:42 +0000 |
commit | 64d5660ea206b7656fd8dfdc91535e3642ef333d (patch) | |
tree | 662b4d64b1a0b5b4d4e96b2b9d3a8477aa2dc21d /src/emacs.c | |
parent | ae6ba5e5a235a820f63f7250cd8b9dfec759d59c (diff) | |
download | emacs-64d5660ea206b7656fd8dfdc91535e3642ef333d.tar.gz |
(init_cmdargs): Make Vinvocation_directory
absolute if it isn't already.
Diffstat (limited to 'src/emacs.c')
-rw-r--r-- | src/emacs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index 2f17c312b3b..5a8af21463f 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -218,6 +218,11 @@ init_cmdargs (argc, argv, skip_args) Vinvocation_directory = Ffile_name_directory (found); } + if (!NILP (Vinvocation_directory) + && NILP (Ffile_name_absolute_p (Vinvocation_directory))) + /* Emacs was started with relative path, like ./emacs */ + Vinvocation_directory = Fexpand_file_name (Vinvocation_directory, Qnil); + Vinstallation_directory = Qnil; if (!NILP (Vinvocation_directory)) |