cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] Make testcurl.pl perl-5.0x compliant

From: Tor Arntsen <tor_at_spacetec.no>
Date: Wed, 24 Mar 2004 15:08:43 +0100

In older versions of Perl, e.g. 5.005 as on the IRIX 6.2 freeware CD, the
second parameter of 'mkdir' is mandatory. This patch adds 0777 for the MASK
value, i.e. the implicit default value when it's not specified (with newer
versions of Perl).

-Tor

---
Index: tests/testcurl.pl
===================================================================
RCS file: /repository/curl/tests/testcurl.pl,v
retrieving revision 1.2
diff -u -u -p -r1.2 testcurl.pl
--- tests/testcurl.pl	24 Mar 2004 10:52:21 -0000	1.2
+++ tests/testcurl.pl	24 Mar 2004 14:02:58 -0000
@@ -212,7 +212,7 @@ rmtree "buildlog-*";
 foreach (glob("$CURLDIR/buildlog-*")) { unlink $_; }
 
 # create a dir to build in
-mkdir $build;
+mkdir $build,0777;
 
 if (-d $build) {
   logit "build dir $build was created fine";
Received on 2004-03-24