Return to BSD News archive
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!usc!enterpoop.mit.edu!ai-lab!hal.gnu.ai.mit.edu!mycroft From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum) Newsgroups: comp.os.386bsd.apps Subject: Re: Elm fixed easily for 386bsd Date: 1 Mar 1993 03:42:17 GMT Organization: /etc/organization Lines: 31 Message-ID: <1ms0mpINN6or@life.ai.mit.edu> References: <6430@krafla.rhi.hi.is> NNTP-Posting-Host: hal.ai.mit.edu In article <6430@krafla.rhi.hi.is> adamd@rhi.hi.is (Adam David) writes: > > let elm be a setgid program, and use setgid() to switch gids This is not necessary. > in src/mailmsg2.c change 2 sprintf statements that contain '&' in the > format string. The shell commands generated by these statements need > to be rearranged so that /bin/sh can pass non-empty mail messages: > > "( (..... %s ; %s %s) & ) < %s" becomes "(..... %s < %s; %s %s) &" > The last 3 function args need to be rearranged to reflect this change, > remove_cmd will be the second from last arg. There is also such a line in remail.c. It also has nothing to do with the message being empty. The problem is that `&' causes ash to close standard input. None of the message text actually reaches sendmail. You can get a complete port from: alpha.gnu.ai.mit.edu:/386bsd/README elm2.4pl21.tar.z -- \ / Charles Hannum, mycroft@ai.mit.edu /\ \ PGP public key available on request. MIME, AMS, NextMail accepted. Scheme White heterosexual atheist male (WHAM) pride!