Issue 1009075: (bug 952953) execve empty 2nd arg fix (original) (raw)

Issue1009075

Created on 2004-08-14 04:48 by docwatson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
exec.patch docwatson,2004-08-14 06:15 fixes all exec commands, and fixes documentation
Messages (4)
msg46694 - (view) Author: Dave Watson (docwatson) Date: 2004-08-14 04:48
currently os.execve will give an error for something like os.execve("/bin/ls",[],{}) while in C this is valid behavior. This patch accepts the above empty second arg.
msg46695 - (view) Author: Dave Watson (docwatson) Date: 2004-08-14 06:15
Logged In: YES user_id=1094771 An updated patch, this fixes all exec* commands to make the second arg optionally empty, and the documentation is updated to reflect the changes.
msg46696 - (view) Author: Dima Dorfman (ddorfman) Date: 2004-08-14 10:31
Logged In: YES user_id=908995 The patch looks good to me, and allowing this is the right thing to do. Posix explicitly allows zero arguments to be passed, and the rationale says that this is to be compatible with the C Standard, which only requires that main's argc be nonnegative.
msg46697 - (view) Author: Armin Rigo (arigo) * (Python committer) Date: 2004-09-27 19:54
Logged In: YES user_id=4771 Looks complete. Checked in: Modules/posixmodule.c 2.327 Doc/lib/libos.tex 1.142
History
Date User Action Args
2022-04-11 14:56:06 admin set github: 40756
2004-08-14 04:48:46 docwatson create