Why the hell can I:
open FOO, "> /var/qmail/queue/tmp.txt";
but not:
open FOO, "> /var/qmail/queue/$messnum";
??
Could somebody direct me to what .c file is inhibiting this? (I just need
this to work for now... I will try and implement everything in
qmail-smtpd.c when I have the time.)
Thank you,
Masuo Gates
On Wed, 27 Oct 1999, Masuo Jeff Gates wrote:
> Hello,
> I am having issues implementing a footer hack. I would much
> appreciate anybody's input.
>
> I put a hook in qmail-queue.c to call a perl script (simple
> fork() execlp()). The perl script I wrote parses the message in
> mess/x/messnum, and adds an appropriate footer (text or html). (I got
> around the doubled-add by putting in an X- header, also added support for
> the different Content-Types.)
>
> Anyways, things looked great during testing (writing to
> /var/qmail/queue/temp.txt, footers were added beautifully), but when it
> came down to actually WRITING to mess/x/messnum:
>
> Insecure dependency in open while running setuid at /var/qmail/
> bin/footer.pl line 268.
>
> was the warning I got.
>
> Does anybody happen to have any insight on what I must do to get this
> working? (At this time in the morning, the only thing I can think of is
> putting in a sleep() in queue, and having a shell script (running as root)
> mv the footer added file to the correct dir (I will not do this ^^;;).
>
> I would much appreciate any help at all.
>
> Thank you in advance,
>
> Masuo Gates
>
>
>
>