From owner-freebsd-current@FreeBSD.ORG Mon Jun 30 09:25:27 2008 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 9EFC11065674; Mon, 30 Jun 2008 09:25:27 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id D88E08FC1E; Mon, 30 Jun 2008 09:25:26 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru (BL-18-PXY-0.express.ru [212.24.36.217] (may be forged)) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id m5U8qd0I014083 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 30 Jun 2008 12:52:41 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KDF7n-0008rb-3l; Mon, 30 Jun 2008 12:52:39 +0400 From: Vladimir Grebenschikov To: Alexey Shuvaev In-Reply-To: <20080626110521.GA68764@wep4017.physik.uni-wuerzburg.de> References: <20080626110521.GA68764@wep4017.physik.uni-wuerzburg.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Mon, 30 Jun 2008 12:52:38 +0400 Message-Id: <1214815958.3581.67.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: kientzle@freebsd.org, freebsd-current@freebsd.org Subject: Re: cpio -dumpl damages the files? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2008 09:25:27 -0000 On Thu, 2008-06-26 at 13:05 +0200, Alexey Shuvaev wrote: > Hello! >=20 > Yesterday I have encountered a strange problem > trying to build math/qtiplot, the compiler exited with errors during > the build. After examining the situation it appeared that math/qtiplot3d-= qt4 > have installed damaged include files. In a nutshell the problem is that > bsdcpio damages the files: Same here, also it shows strange warning on every directory being copied: $ cd ~/tmp $ mkdir -p a/b/c/1 a/b/c/2 a/b/c/3 dst $ cp DSC01699.JPG a/b/c/1/ =EF=BB=BF$ cp DSC01699.JPG a/b/c/2/ =EF=BB=BF$ cp DSC01699.JPG a/b/c/3/ $ file a/b/c/?/* a/b/c/1/DSC01699.JPG: JPEG image data, EXIF standard 2.2 a/b/c/2/DSC01699.JPG: JPEG image data, EXIF standard 2.2 a/b/c/3/DSC01699.JPG: JPEG image data, EXIF standard 2.2 $ find a | cpio -dumpl dst/ Operation not permitted: Operation not permitted cpio: Can't create 'dst/a/b': Operation not permitted: Operation not permitted cpio: Can't create 'dst/a/b/c': Operation not permitted: Operation not permitted cpio: Can't create 'dst/a/b/c/1': Operation not permitted: Operation not permitted cpio: Can't create 'dst/a/b/c/2': Operation not permitted: Operation not permitted cpio: Can't create 'dst/a/b/c/3': Operation not permitted: Operation not permitted $ file a/b/c/?/* a/b/c/1/DSC01699.JPG: data a/b/c/2/DSC01699.JPG: data a/b/c/3/DSC01699.JPG: data $ truss shows: ... lstat("dst/a/b/c/3",0xbfbfe15c) ERR#2 'No such file or directory' link("a/b/c/3","dst/a/b/c/3") ERR#1 'Operation not permitted' ... Bad news, that it damaged original files also. PS:=20 upgrading now ... --=20 Vladimir B. Grebenschikov vova@fbsd.ru