reopen 279965
thanks

Hi all,

sorry, that I have to reopen the bug!

I introduced something like bug #276172 again in my previous patch.
Although I had fixed it in my local package, somehow I've sent the wrong
version of my patch. This is my fault, silly me!

The problem is the line

execlp("/bin/sh", filespec, logfn, NULL);

No, "/bin/sh" is called with the name of the script as process name
($0), but it tries to execute the logfile! This is CRITICAL! And will
fail in most cases ... :(

It has to be:
execlp("/bin/sh", filespec, filespec, logfn, NULL);

Then, the behaviour is as before: Process name is filespec, the shell
calls filespec and the argument is logfn. This patch is really working
for me. (The packages at http://ele-et.de/debian/packages already
included the fix). I really don't know, why I sent the wrong patch.

Attached is the corrected patch, including your modification concerning
the file permissions.

I hope, nobody runs into trouble with the last upload.

Apologies,
Philipp



Attachment: 42-execlp-bin-sh.dpatch
Description: application/shellscript

Reply via email to