From owner-freebsd-current@FreeBSD.ORG Fri Jul 30 07:23:36 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C99321065675 for ; Fri, 30 Jul 2010 07:23:36 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 35FBF8FC25 for ; Fri, 30 Jul 2010 07:23:35 +0000 (UTC) Received: by ewy26 with SMTP id 26so622036ewy.13 for ; Fri, 30 Jul 2010 00:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:user-agent:mime-version:content-type; bh=oalSgb8je+0GNK/HVURN2vS7nxO3uMf4PcNozUji7CA=; b=nifdvpNSSBnc5yB/zS5uNr5q6xnM79yegIo/Q3OsAz7bLOJhF5Svk83cLAr6lch4PC k6uF02XvDWXY3HK6sQVLzMBOzIyFDSe8J/caeKpVG/iTe3+BgZ2ZDPl0iaR0vIgL7Pjl GbSaJDfvNLWQHq9oPPR4WWHg788AVL4B8KluQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:user-agent:mime-version :content-type; b=a9ytEKHI7XD1sC9ZYPN+Iu2FZmcfawux7lDHqRTCsV6qAQU9kGUnDXWX86isF2BhVY p/uJHzmTBXYeItd1G+UtxoRbjIFPOgVOmFP3c0E27wXRfLx4m+sXDlXGRpQC1sBud3GS OW8BHcYiR+BWzGHOiIyzInM4GDI5hPyoGEQ4o= Received: by 10.213.25.145 with SMTP id z17mr974152ebb.52.1280474615119; Fri, 30 Jul 2010 00:23:35 -0700 (PDT) Received: from localhost ([95.129.163.102]) by mx.google.com with ESMTPS id v8sm2643682eeh.2.2010.07.30.00.23.29 (version=SSLv3 cipher=RC4-MD5); Fri, 30 Jul 2010 00:23:34 -0700 (PDT) From: Anonymous To: freebsd-current@freebsd.org Date: Fri, 30 Jul 2010 11:20:05 +0400 Message-ID: <86fwz1bfmi.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kientzle@FreeBSD.org Subject: bsdcpio(1): -L|-R options don't work? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jul 2010 07:23:36 -0000 Can anyone confirm? $ mkdir foo $ echo >foo/bar $ ln -s /usr/include foo/baz $ find foo -ls 57914 3 drwxr-xr-x 2 holo holo 4 Jul 30 11:08 foo 57982 1 lrwxr-xr-x 1 holo holo 12 Jul 30 11:08 foo/baz -> /usr/include 57977 2 -rw-r--r-- 1 holo holo 1 Jul 30 11:08 foo/bar $ find foo | sudo cpio -pdm -L -R root:wheel blah $ find blah -ls 58001 3 drwxr-xr-x 3 root holo 3 Jul 30 11:09 blah 58002 3 drwxr-xr-x 3 holo holo 4 Jul 30 11:08 blah/foo 58004 2 -rw-r--r-- 1 holo holo 1 Jul 30 11:08 blah/foo/bar 58003 3 drwxr-xr-x 2 root wheel 2 Jul 29 12:49 blah/foo/baz Some tests fail, too. $ make test -C usr.bin/cpio Exercising: bsdcpio 2.8.3 -- libarchive 2.7.901a ... 13: test_option_t main.c:863: Assertion failed Condition: in != NULL Description: Couldn't open reference file /usr/src/usr.bin/cpio/test/test_option_tnv.stdout.uu ... 18: test_owner_parse test_owner_parse.c:124: Assertion failed: Ints not equal 1=1 owner_parse(":nonexistentgroup", &uid, &gid)=4910272 test_owner_parse.c:125: Assertion failed: Ints not equal 1=1 owner_parse(ROOT ":nonexistentgroup", &uid, &gid)=4910272 test_owner_parse.c:127: Assertion failed: Ints not equal 1=1 owner_parse("nonexistentuser:nonexistentgroup", &uid, &gid)=4910272