Permalink
Browse files

got rid of per-user temporary directories

  • Loading branch information...
1 parent 1d15fbf commit fde5c8ea1c243b8945f8b4bf230dc8bd2f4dbe0e lstein committed Mar 28, 2000
Showing with 11 additions and 9 deletions.
  1. +4 −2 CGI.pm
  2. +7 −7 cgi_docs.html
View
@@ -17,7 +17,7 @@ require 5.004;
# The most recent version and complete docs are available at:
# http://stein.cshl.org/WWW/software/CGI/
-$CGI::revision = '$Id: CGI.pm,v 1.28 2000-03-28 02:17:42 lstein Exp $';
+$CGI::revision = '$Id: CGI.pm,v 1.29 2000-03-28 02:44:24 lstein Exp $';
$CGI::VERSION='2.61';
# HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES.
@@ -3193,12 +3193,14 @@ unless ($TMPDIRECTORY) {
"${SL}WWW_ROOT", "${SL}SYS\$SCRATCH");
unshift(@TEMP,$ENV{'TMPDIR'}) if exists $ENV{'TMPDIR'};
+ # this feature was supposed to provide per-user tmpfiles, but
+ # it is problematic.
# unshift(@TEMP,(getpwuid($<))[7].'/tmp') if $CGI::OS eq 'UNIX';
# Rob: getpwuid() is unfortunately UNIX specific. On brain dead OS'es this
# : can generate a 'getpwuid() not implemented' exception, even though
# : it's never called. Found under DOS/Win with the DJGPP perl port.
# : Refer to getpwuid() only at run-time if we're fortunate and have UNIX.
- unshift(@TEMP,(eval {(getpwuid($>))[7]}).'/tmp') if $CGI::OS eq 'UNIX' and $> != 0;
+ # unshift(@TEMP,(eval {(getpwuid($>))[7]}).'/tmp') if $CGI::OS eq 'UNIX' and $> != 0;
foreach (@TEMP) {
do {$TMPDIRECTORY = $_; last} if -d $_ && -w _;
View
@@ -4140,12 +4140,11 @@
<P>
-If you're on a non-Unix system you may need to modify
-CGI.pm to point at a suitable temporary directory. This
-directory must be
-writable by the user ID under which the server runs (usually
-"nobody") and must have sufficient capacity to handle large
-file uploads. Open up CGI.pm, and find the line:
+If you're on a non-Unix system you may need to modify CGI.pm to point
+at a suitable temporary directory. This directory must be writable by
+the user ID under which the server runs (usually "nobody") and must
+have sufficient capacity to handle large file uploads. Open up
+CGI.pm, and find the line:
<PRE>
package TempFile;
@@ -4630,6 +4629,7 @@
<ol>
<li>Moved more functions from CGI.pm proper into CGI/Util.pm. CGI/Cookie should now be
standalone.
+ <li>Disabled per-user temporary directories, which were causing grief.
</ol>
<h3>Version 2.60</h3>
@@ -5389,6 +5389,6 @@
<a href="http://www.cshl.org/">Cold Spring Harbor Laboratory</a></ADDRESS>
<P>
<!-- hhmts start -->
-Last modified: Mon Mar 27 21:14:47 EST 2000
+Last modified: Mon Mar 27 21:43:48 EST 2000
<!-- hhmts end -->
</BODY> </HTML>

0 comments on commit fde5c8e

Please sign in to comment.