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
e120ea40
Commit
e120ea40
authored
Feb 05, 2005
by
Andreas Schwab
Browse files
(sys_subshell): Properly terminate execlp argument list.
parent
6d61d855
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/sysdep.c
src/sysdep.c
+2
-2
No files found.
src/ChangeLog
View file @
e120ea40
2005-02-05 Andreas Schwab <schwab@suse.de>
* sysdep.c (sys_subshell): Properly terminate execlp argument
list.
2005-02-05 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2005-02-05 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
* xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
...
...
src/sysdep.c
View file @
e120ea40
/* Interfaces to system-dependent kernel and library entries.
/* Interfaces to system-dependent kernel and library entries.
Copyright (C) 1985, 1986, 1987, 1988, 1993, 1994, 1995, 1999, 2000, 2001,
Copyright (C) 1985, 1986, 1987, 1988, 1993, 1994, 1995, 1999, 2000, 2001,
2003, 2004 Free Software Foundation, Inc.
2003, 2004
, 2005
Free Software Foundation, Inc.
This file is part of GNU Emacs.
This file is part of GNU Emacs.
...
@@ -869,7 +869,7 @@ sys_subshell ()
...
@@ -869,7 +869,7 @@ sys_subshell ()
if
(
pid
==
-
1
)
if
(
pid
==
-
1
)
write
(
1
,
"Can't execute subshell"
,
22
);
write
(
1
,
"Can't execute subshell"
,
22
);
#else
/* not WINDOWSNT */
#else
/* not WINDOWSNT */
execlp
(
sh
,
sh
,
0
);
execlp
(
sh
,
sh
,
(
char
*
)
0
);
write
(
1
,
"Can't execute subshell"
,
22
);
write
(
1
,
"Can't execute subshell"
,
22
);
_exit
(
1
);
_exit
(
1
);
#endif
/* not WINDOWSNT */
#endif
/* not WINDOWSNT */
...
...
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