Uwe Bonnes <[EMAIL PROTECTED]> writes:

> But reading the exec manpage, it tells that first the file is tried
> with execve as an executable, and if it is no executable as a script
> with /bin/sh.

Oops right, that's a problem. But apparently (with glibc 2.1.3 at
least, and contrary to the documentation) only execvp() does this, not
execv(), so we could use that; it would be more correct anyway since
we have the exact file name we don't want to search the path. Or you
could avoid setting the executable bit on your pdf files ;-)

-- 
Alexandre Julliard
[EMAIL PROTECTED]

Reply via email to