|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Jarno Huuskonen (Jarno.Huuskonen
uku.fi)Date: Tue May 08 2001 - 06:50:17 CDT
Hi,
While reading some perl documentation with perldoc I noticed that the
filename of the doc was /tmp/tmp/perldoc1.2099 (2099 was the perldoc pid).
After that I checked /usr/bin/perldoc and it indeed opens that original
filename with:
open(TMP,">>$tmp");
Also perlcc / perlbug etc. possibly have similar problems.
I searched for perldoc tmp problems and came up with at least these
references:
http://security-archive.merton.ox.ac.uk/archive-199806/0393.html
http://lists.debian.org/debian-changes-9806/msg00018.html
So it looks like this is nothing new. The perl version I have is
5.00503 (RH 6.2 errata). Perl 5.6.0 seems to have a better perldoc that
uses sysopen(..., O_EXCL ...) for opening the tempfile.
-Jarno
PS. perldoc seems to honour $ENV{"TMP"} on windows/dos. Any good reasons
why not do the same ($ENV{"TMPDIR"}) on Linux/Unix ?
-- Jarno Huuskonen - System Administrator | Jarno.Huuskonenuku.fi University of Kuopio - Computer Center | Work: +358 17 162822 PO BOX 1627, 70211 Kuopio, Finland | Mobile: +358 40 5388169
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]