cpio -dumpl damages the files?
Vladimir Grebenschikov
vova at fbsd.ru
Mon Jun 30 09:25:27 UTC 2008
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
More information about the freebsd-current
mailing list