gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/deb-specific/cvsweb cvsweb.cgi,1.3,1.3.2.1


From: lo-lan-do
Subject: [Gforge-commits] gforge/deb-specific/cvsweb cvsweb.cgi,1.3,1.3.2.1
Date: Tue, 30 Mar 2004 07:19:03 -0600

Update of /cvsroot/gforge/gforge/deb-specific/cvsweb
In directory db.perdue.net:/tmp/cvs-serv21208/deb-specific/cvsweb

Modified Files:
      Tag: Branch_3_1
        cvsweb.cgi 
Log Message:
Fixed cvsweb.cgi so it calls cvs with non-absolute filenames, thus
allowing the "download" feature to work again.


Index: cvsweb.cgi
===================================================================
RCS file: /cvsroot/gforge/gforge/deb-specific/cvsweb/Attic/cvsweb.cgi,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -d -r1.3 -r1.3.2.1
--- cvsweb.cgi  23 Dec 2002 13:17:12 -0000      1.3
+++ cvsweb.cgi  30 Mar 2004 13:19:00 -0000      1.3.2.1
@@ -1250,7 +1250,9 @@
     # Safely for a child process to read from.
     if (! open($fh, "-|")) { # child
       open(STDERR, ">&STDOUT"); # Redirect stderr to stdout
-      exec("cvs", "-d", "$cvsroot", "co", "-p", "$revopt", "$where");
+      my $strippedwhere = $where ;
+      $strippedwhere =~ s|^/?|| ;
+      exec("cvs", "-d", "$cvsroot", "co", "-p", "$revopt", "$strippedwhere");
     } 
 #===================================================================
 #Checking out squid/src/ftp.c





reply via email to

[Prev in Thread] Current Thread [Next in Thread]