[DGD]External commands

Erwin Harte harte at xs4all.nl
Sat Mar 31 14:55:23 CEST 2001


On Sat, Mar 31, 2001 at 12:54:15PM +0100, Matthew Jenkins wrote:
> 
> Yep - here it is...
> 
> Drop this into one of your existing kfun files, recompile dgd, reboot, and
> you should have the sendmail() function...
> 
> I'm sure the system call can be cleaned up a bit, but it does the job I
> want it to, so why change? ;)

Because:

- You don't do any sanity-checking of the email-addresses yourself.
- You don't do any checking of what results sendmail might give you.
- What if this is called with 'foo | rm -rf /' as 5th parameter?
- The 'tmail' file, in what directory does it end up, the top of the
  (mud)lib?
- You don't unlink the 'tmail' file, so someone with read-access there
  can read other people's outgoing email.

Just some pointers. :)

Erwin.
-- 
Erwin Harte      : `Don't mind Erwin, he gets crabby. :)'
harte at xs4all.nl  :    -- Par Winzell <zell at skotos.net>

List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list