Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2000 14:05:10 +0200
From:      Jeroen Ruigrok van der Werven <jruigrok@via-net-works.nl>
To:        audit@freebsd.org
Subject:   printjob.c mktemp() problem
Message-ID:  <20001024140510.G93799@lucifer.bart.nl>

next in thread | raw e-mail | index | archive | help
In printjob.c in the dir src/usr.sbin/lpr/lpd we see a mktemp() call
which creates a file accroding to the template.

I also see that it is getting unlink()'d again a bunch of lines later.

I later on see some open() call on the same tempfile array which does
exactly what the mktemp(3) manpage warns about.

Am I right into thinking this might be a good candidate for a
mktemp()->mkstemp() conversion?

-- 
Jeroen Ruigrok van der Werven          Network- and systemadministrator
<jruigrok@via-net-works.nl>            VIA Net.Works The Netherlands
BSD: Technical excellence at its best  http://www.via-net-works.nl
Asleep is the Rose, in tired innocence dreaming Time away...


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001024140510.G93799>