[ python-Bugs-952953 ] execve rejects empty argument list

SourceForge.net noreply at sourceforge.net
Mon Sep 27 21:55:01 CEST 2004


Bugs item #952953, was opened at 2004-05-13 00:54
Message generated for change (Comment added) made by arigo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=952953&group_id=5470

Category: Python Library
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: newsham (newsham)
Assigned to: Nobody/Anonymous (nobody)
Summary: execve rejects empty argument list

Initial Comment:
The exec* family of calls in the os package does
not allow an empty list of arguments to be passed
in.  Passing is an empty list (ie. allow argv[0] to
be NULL and argc to be zero) is rarely desired, but
perfectly legal.

Verify by:

    import os
    os.execve("/bin/ls", [], {})

Tim N.

----------------------------------------------------------------------

>Comment By: Armin Rigo (arigo)
Date: 2004-09-27 19:55

Message:
Logged In: YES 
user_id=4771

Applied patch.

----------------------------------------------------------------------

Comment By: Dave Watson (docwatson)
Date: 2004-08-14 23:53

Message:
Logged In: YES 
user_id=1094771

a patch has been submitted (# 1009075)

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2004-08-07 21:48

Message:
Logged In: YES 
user_id=6656

I think you'll need to supply a patch to have any hope of
this changing.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=952953&group_id=5470


More information about the Python-bugs-list mailing list