﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
330	spawn() fails to execute a shell script if a dir whose name is same as an interpreter exists	KO Myung-Hun		"Hi/2.

For examples,

// spawn.c
{{{
#include <stdio.h>
#include <process.h>

int main( int argc, char *argv[])
{
    int rc;

    if( argc < 2 )
    {
        fprintf( stderr, ""Usage: spawn program\n"");

        return 1;
    }

    rc = spawnvp( P_WAIT, argv[ 1 ], &argv[ 1 ]);
    printf(""spawnvp() = %d\n"", rc );
    if( rc == -1 )
        perror(""spawnvp()"");

    return !!rc;
}
}}}

// spawn.pl
{{{
#!perl

print ""$0: hello\n"";
}}}

When trying

{{{
mkdir perl
spawn spawn.pl
}}}

the result is

{{{
spawnvp() = -1
spawnvp(): Permission denied
}}}"	defect	new	normal	libc-0.7	libc	0.6.6	normal			
