From owner-cvs-all@FreeBSD.ORG Fri Feb 3 05:45:02 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B43F716A420; Fri, 3 Feb 2006 05:45:02 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80E6443D4C; Fri, 3 Feb 2006 05:45:02 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k135j2Il060005; Fri, 3 Feb 2006 05:45:02 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k135j2ki060004; Fri, 3 Feb 2006 05:45:02 GMT (envelope-from mux) Message-Id: <200602030545.k135j2ki060004@repoman.freebsd.org> From: Maxime Henrion Date: Fri, 3 Feb 2006 05:45:02 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup fattr.c fattr.h proto.c status.c updater.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2006 05:45:02 -0000 mux 2006-02-03 05:45:02 UTC FreeBSD projects repository Modified files: csup fattr.c fattr.h proto.c status.c updater.c Log: fattr.c: - I tried to avoid having the need for a function to initialize the fattr API, but it makes things harder afterwards. So, have two new functins, fattr_init() and fattr_fini() to initialize and deinitialize the API. - Using this, we can now implement fattr_mergedefault() as intended, and get rid of fattr_default(). proto.c: - Call fattr_init() and fattr_fini() in appropriate places. status.c: - fattr_default() -> fattr_mergedefault(). updater.c: - Correct the code that computes the file attributes for a file we're checking out so that it works correctly, using the new function fattr_mergedefault(). More work is needed in this file, but as far as I can tell, csup now correctly sets all the attributes at checkout time. This fixes the many "SetAttrs" commands that were happening as a side effect to this bug. Revision Changes Path 1.29 +37 -15 projects/csup/fattr.c 1.20 +5 -1 projects/csup/fattr.h 1.60 +9 -1 projects/csup/proto.c 1.5 +2 -1 projects/csup/status.c 1.66 +9 -3 projects/csup/updater.c