[Patches] [ python-Patches-1009075 ] (bug 952953) execve empty 2nd
arg fix
SourceForge.net
noreply at sourceforge.net
Sat Aug 14 12:31:05 CEST 2004
Patches item #1009075, was opened at 2004-08-14 04:48
Message generated for change (Comment added) made by ddorfman
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1009075&group_id=5470
Category: Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Dave Watson (docwatson)
Assigned to: Nobody/Anonymous (nobody)
Summary: (bug 952953) execve empty 2nd arg fix
Initial Comment:
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.
----------------------------------------------------------------------
Comment By: Dima Dorfman (ddorfman)
Date: 2004-08-14 10:31
Message:
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.
----------------------------------------------------------------------
Comment By: Dave Watson (docwatson)
Date: 2004-08-14 06:15
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1009075&group_id=5470
More information about the Patches
mailing list