diff options
| author | Jim Porter | 2021-07-04 15:32:03 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-07-04 15:32:03 +0200 |
| commit | 2f2afa0b310bbce43a8703f5467b2638082abdd9 (patch) | |
| tree | dee76d7ecf541721635f7e9195e6e38960006c12 /src/process.c | |
| parent | 46d4ddd1767284e8a42b01e7880c2658c5957ab1 (diff) | |
| download | emacs-2f2afa0b310bbce43a8703f5467b2638082abdd9.tar.gz emacs-2f2afa0b310bbce43a8703f5467b2638082abdd9.zip | |
Ensure 'call-process' interprets INFILE as a local path
* src/callproc.c (get_current_directory): Rename from
'encode_current_directory' and add boolean ENCODE flag.
(Fcall_process): Interpret INFILE relative to the working directory
from which PROGRAM is run, not 'default-directory'.
(call_process): Use 'get_current_directory'.
* src/process.c (Fmake_process): Use 'get_current_directory'.
* src/process.h (get_current_directory): Rename decl from
'encode_current_directory'.
* src/sysdep.c (sys_subshell): Use 'get_current_directory' (bug#49283).
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index c354f3a90da..b8c3e4ecfbc 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1755,7 +1755,7 @@ usage: (make-process &rest ARGS) */) | |||
| 1755 | buffer's current directory, or its unhandled equivalent. We | 1755 | buffer's current directory, or its unhandled equivalent. We |
| 1756 | can't just have the child check for an error when it does the | 1756 | can't just have the child check for an error when it does the |
| 1757 | chdir, since it's in a vfork. */ | 1757 | chdir, since it's in a vfork. */ |
| 1758 | current_dir = encode_current_directory (); | 1758 | current_dir = get_current_directory (true); |
| 1759 | 1759 | ||
| 1760 | name = Fplist_get (contact, QCname); | 1760 | name = Fplist_get (contact, QCname); |
| 1761 | CHECK_STRING (name); | 1761 | CHECK_STRING (name); |