Re: cpio -dumpl damages the files?

From: Vladimir Grebenschikov <vova_at_fbsd.ru>
Date: Mon, 30 Jun 2008 12:52:38 +0400
On Thu, 2008-06-26 at 13:05 +0200, Alexey Shuvaev wrote:
> Hello!
> 
> 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/
$ cp DSC01699.JPG a/b/c/2/
$ 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: 
  upgrading now ...

-- 
Vladimir B. Grebenschikov
vova_at_fbsd.ru
Received on Mon Jun 30 2008 - 07:25:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:32 UTC