diff options
| author | Philipp Stephani | 2020-12-23 16:26:57 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2020-12-23 16:26:57 +0100 |
| commit | bdcea81a2f906be3c573c42276dbfd35ccb432f9 (patch) | |
| tree | 8780559b57846364b004aa4eadd75eecfd791f68 /src/process.c | |
| parent | 95334ee79ab60c0910a5528e586a24d11f91743b (diff) | |
| download | emacs-bdcea81a2f906be3c573c42276dbfd35ccb432f9.tar.gz emacs-bdcea81a2f906be3c573c42276dbfd35ccb432f9.zip | |
Pass C string pointer to current directory to 'child_setup'.
This avoids the impression that 'child_setup' could do anything
Lisp-related.
* src/callproc.c (child_setup): Pass C pointer to current directory
name.
(call_process): Adapt callers.
* src/process.c (create_process): Adapt callers.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c index c579078c1ca..15b4a23784e 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -2259,9 +2259,11 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir) | |||
| 2259 | if (forkerr < 0) | 2259 | if (forkerr < 0) |
| 2260 | forkerr = forkout; | 2260 | forkerr = forkout; |
| 2261 | #ifdef WINDOWSNT | 2261 | #ifdef WINDOWSNT |
| 2262 | pid = child_setup (forkin, forkout, forkerr, new_argv, env, current_dir); | 2262 | pid = child_setup (forkin, forkout, forkerr, new_argv, env, |
| 2263 | SSDATA (current_dir)); | ||
| 2263 | #else /* not WINDOWSNT */ | 2264 | #else /* not WINDOWSNT */ |
| 2264 | child_setup (forkin, forkout, forkerr, new_argv, env, current_dir); | 2265 | child_setup (forkin, forkout, forkerr, new_argv, env, |
| 2266 | SSDATA (current_dir)); | ||
| 2265 | #endif /* not WINDOWSNT */ | 2267 | #endif /* not WINDOWSNT */ |
| 2266 | } | 2268 | } |
| 2267 | 2269 | ||