Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 74117
Status: rejected
Priority: 0/
Queue: CGI

People
Owner: MARKSTOS [...] cpan.org
Requestors: hirling.endre [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: CGI.pm typo in find_tempdir
Date: Wed, 18 Jan 2012 12:27:27 +0100
To: bug-CGI.pm [...] rt.cpan.org
From: Endre Hirling <hirling.endre [...] gmail.com>
Hi, There's a line in find_tempdir that checks for a writable directory: for (@TEMP) { do {$TMPDIRECTORY = $_; last} if -d $_ && -w _; } I think the "-w _" is a typo, a $ is missing and it causes find_tmpdir to misbehave. This is present in the current CPAN version (3.59) in line 4191. Greetings Endre
That's not a typo, that's correct perl syntax. Review here: perldoc -f - And scroll to the bottom. Submit a failing test case if you've found a bug in CGI.pm Mark
Subject: Re: [rt.cpan.org #74117] CGI.pm typo in find_tempdir
Date: Wed, 18 Jan 2012 16:07:58 +0100
To: bug-CGI.pm [...] rt.cpan.org
From: Endre Hirling <hirling.endre [...] gmail.com>
Sorry for the false report and many thanks for pointing me to the right direction. I couldn't find it in the manual at first and was confused that setting $ENV{TMPDIR} in the script itself is not enough. Endre
This issue has been copied to: https://github.com/leejo/CGI.pm/issues/94 please take all future correspondence there. This ticket will remain open but please do not reply here. This ticket will be closed when the github issue is dealt with.
Closed as per previous comment.