Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
13373f4e
Commit
13373f4e
authored
Jul 07, 1995
by
Richard M. Stallman
Browse files
(Fstart_process): Expand PROGRAM.
Error if it is a directory.
parent
553a1e46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/process.c
src/process.c
+8
-1
No files found.
src/process.c
View file @
13373f4e
...
...
@@ -1080,6 +1080,8 @@ Remaining arguments are strings to give program as arguments.")
#else
/* not VMS */
new_argv
=
(
unsigned
char
**
)
alloca
((
nargs
-
1
)
*
sizeof
(
char
*
));
program
=
Fexpand_file_name
(
program
,
Qnil
);
/* If program file name is not absolute, search our path for it */
if
(
!
IS_DIRECTORY_SEP
(
XSTRING
(
program
)
->
data
[
0
])
&&
!
(
XSTRING
(
program
)
->
size
>
1
...
...
@@ -1096,7 +1098,12 @@ Remaining arguments are strings to give program as arguments.")
new_argv
[
0
]
=
XSTRING
(
tem
)
->
data
;
}
else
new_argv
[
0
]
=
XSTRING
(
program
)
->
data
;
{
if
(
!
NILP
(
Ffile_directory_p
(
program
)))
error
(
"Specified program for new process is a directory"
);
new_argv
[
0
]
=
XSTRING
(
program
)
->
data
;
}
for
(
i
=
3
;
i
<
nargs
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment