From owner-freebsd-cvsweb Wed Jul 3 11:34:54 2002 Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E595437B400 for ; Wed, 3 Jul 2002 11:34:51 -0700 (PDT) Received: from ns1.comverse.com (ns1.comverse.com [63.64.185.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 014B043E09 for ; Wed, 3 Jul 2002 11:34:51 -0700 (PDT) (envelope-from Vassilii.Khachaturov@comverse.com) Received: from mail-bridge.comverse.com (mail-bridge.comverse.com [10.200.7.190]) by ns1.comverse.com (8.11.6/8.11.6) with ESMTP id g63IKPn28457 for ; Wed, 3 Jul 2002 14:20:28 -0400 Received: by mail-bridge.comverse.com with Internet Mail Service (5.5.2653.19) id ; Wed, 3 Jul 2002 14:35:17 -0400 Received: from mail-in.comverse.com (mail-in [10.230.12.30]) by mail-bridge.comverse.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id NX84QRW8; Wed, 3 Jul 2002 14:35:15 -0400 Received: by mail-in.comverse.com with Internet Mail Service (5.5.2653.19) id ; Wed, 3 Jul 2002 14:34:20 -0400 From: Khachaturov Vassilii To: "'cvsweb development'" Message-ID: <6B1DF6EEBA51D31182F200902740436803B24BB7@mail-in.comverse.com> Subject: RE: [PATCH] fileSortCmp() should properly weed out rogue non-dir files Date: Wed, 3 Jul 2002 14:34:20 -0400 Importance: low X-Priority: 5 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-cvsweb@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have just looked at my last email=20 archived through the WWW interface at=20 http://docs.freebsd.org/mail/current/freebsd-cvsweb.html and found my MIME attachment displayed there as raw base64. Here comes the contents of the file for archival purposes (but I'm afraid that lines can become folded or that tabs can become messed up now... anyway, let me give it a try): --- cvsweb.cgi 2002/05/22 08:10:18 1.104 +++ cvsweb.cgi 2002/05/30 18:44:10 @@ -3,14 +3,15 @@ # cvsweb - a CGI interface to CVS trees. # # Written in their spare time by -# Bill Fenner (original work) -# extended by Henner Zeller , -# Henrik Nordstrom -# Ken Coar -# Dick Balaska -# Akinori MUSHA -# Jens-Uwe Mager -# Ville Skytt=C4 (html cleanup) +# Bill Fenner (original = work) +# extended by Henner Zeller , +# Henrik Nordstrom +# Ken Coar +# Dick Balaska +# Akinori MUSHA +# Jens-Uwe Mager +# Ville Skytt=C4 (html = cleanup) +# Vassilii Khachaturov # # Based on: # * Bill Fenners cvsweb.cgi revision 1.28 available from: @@ -3359,10 +3362,12 @@ =20 if ($comp =3D=3D 0) { =20 - # Directories first, then sorted on name if no other sort critera - # available. - my $ad =3D ((-d "$fullname/$a") ? "D" : "F"); - my $bd =3D ((-d "$fullname/$b") ? "D" : "F"); + # Directories first, then version archives, then rogue files + # sorted on name if no other sort critera available. + my $ad =3D ((-d "$fullname/$a") ? 'D'=20 + : (defined($fileinfo{$af}) ? 'F' : 'R')); + my $bd =3D ((-d "$fullname/$b") ? 'D'=20 + : (defined($fileinfo{$bf}) ? 'F' : 'R')); ($c =3D $a) =3D~ s|.*/||; ($d =3D $b) =3D~ s|.*/||; $comp =3D ("$ad$c" cmp "$bd$d"); --- TODO.FreeBSD 2001/11/08 10:08:23 1.8 +++ TODO.FreeBSD 2002/05/30 18:44:16 @@ -3,8 +3,4 @@ =20 o Show fatal error messages properly when gzip encoding is enabled. =20 -o Fix sorting by age. - -o Fix mod_perl support. - o Make annotate work for any repository. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cvsweb" in the body of the message