From owner-freebsd-bugs Fri Jan 4 12:20:36 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3877037B41B for ; Fri, 4 Jan 2002 12:20:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g04KK2L43063; Fri, 4 Jan 2002 12:20:02 -0800 (PST) (envelope-from gnats) Received: from tuminfo2.informatik.tu-muenchen.de (tuminfo2.informatik.tu-muenchen.de [131.159.0.81]) by hub.freebsd.org (Postfix) with ESMTP id F32E937B41B for ; Fri, 4 Jan 2002 12:11:44 -0800 (PST) Received: from atleo5.leo.org (atleo5.leo.org [131.159.72.36]) by tuminfo2.informatik.tu-muenchen.de (Postfix) with ESMTP id E8E6410B70; Fri, 4 Jan 2002 21:11:37 +0100 (MET) Received: by atleo5.leo.org (Postfix, from userid 0) id ACDAF22E10; Fri, 4 Jan 2002 21:11:43 +0100 (CET) Message-Id: <20020104201143.ACDAF22E10@atleo5.leo.org> Date: Fri, 4 Jan 2002 21:11:43 +0100 (CET) From: dl@leo.org Reply-To: dl@leo.org To: FreeBSD-gnats-submit@freebsd.org Cc: dl@leo.org X-Send-Pr-Version: 3.113 Subject: gnu/33551: cvs chokes on OpenBSD repositories Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 33551 >Category: gnu >Synopsis: cvs chokes on OpenBSD repositories >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 04 12:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Daniel Lang >Release: FreeBSD 4.4-STABLE i386 >Organization: LEO >Environment: System: FreeBSD atleo5.leo.org 4.4-STABLE FreeBSD 4.4-STABLE #1: Thu Dec 13 17:01:50 CET 2001 root@atleo5.leo.org:/usr/obj/usr/src/sys/ATLEO5 i386 >Description: I use FreeBSD as a large anoncvs server, that also serves an OpenBSD repository. However the OpenBSD extension with their tag (with tag beeing an option in the option file of the repository) make FreeBSD's cvs (server) choke and don't allow access. Here is a little patch by Christian Weisgerber to fix this, i.e. make FreeBSD's cvs ignore these options instead of aborting. >How-To-Repeat: Get an OpenBSD CVS repository, set up anoncvs via :pserver: and try to log in >Fix: Index: parseinfo.c =================================================================== RCS file: /cvs/src/contrib/cvs/src/parseinfo.c,v retrieving revision 1.1.1.9 diff -u -r1.1.1.9 parseinfo.c --- parseinfo.c 10 Aug 2001 09:43:21 -0000 1.1.1.9 +++ parseinfo.c 13 Nov 2001 17:10:12 -0000 @@ -335,6 +335,18 @@ goto error_return; } } + else if (strcmp (line, "tag") == 0) + { + /* OpenBSD extension, skip silently */ + } + else if (strcmp (line, "umask") == 0) + { + /* OpenBSD extension, skip silently */ + } + else if (strcmp (line, "dlimit") == 0) + { + /* OpenBSD extension, skip silently */ + } else if (strcmp (line, "PreservePermissions") == 0) { if (strcmp (p, "no") == 0) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message