From owner-cvs-src@FreeBSD.ORG Tue Feb 19 05:39:35 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF38816A41A; Tue, 19 Feb 2008 05:39:35 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id DADF113C51A; Tue, 19 Feb 2008 05:39:35 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1J5dZUO072197; Tue, 19 Feb 2008 05:39:35 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1J5dZaj072196; Tue, 19 Feb 2008 05:39:35 GMT (envelope-from kientzle) Message-Id: <200802190539.m1J5dZaj072196@repoman.freebsd.org> From: Tim Kientzle Date: Tue, 19 Feb 2008 05:39:35 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libarchive archive_write_disk.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2008 05:39:36 -0000 kientzle 2008-02-19 05:39:35 UTC FreeBSD src repository Modified files: lib/libarchive archive_write_disk.c Log: Portability improvements: * If the platform can't restore char nodes, block nodes, or fifos, don't try and just return error. * Include O_BINARY in most open() calls (define O_BINARY to 0 if the platform doesn't provide a definition already) * Refactor the ownership restore to more cleanly support platforms that don't have any form of {l,f,}chown() call. * Comment a lingering issue with older Unix-like systems that allow root to hose the filesystem. I don't (yet) have a good solution for this, but I expect it will require adding more redundant stat() calls. MFC after: 14 days Revision Changes Path 1.22 +66 -23 src/lib/libarchive/archive_write_disk.c