k001
k001
:...

April 2032
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30

k001 [userpic]
coreutils sucks in FC5

OK, if you are in Fedora Core 5, do the following:
cd /tmp
echo "text" > file
cp -p file file.1


Everything works fine. Now unmount /proc and repeat the copying:
umount /proc
cp -p file file.2


Whoops! I never thought that copying files requires the whole damn /proc partition.

I spent some reasonable time debugging that today. Will come with a bug report and (hopefully) a patch tomorrow.

Comments
такие дела

man futimes(3):

ERRORS
Errors are as for utimes(2), with the following additions:

EBADF fd is not a valid file descriptor.
ENOSYS The /proc file system could not be accessed.

Они имплементили futimes(NUM)как utimes("/proc/self/fd/NUM").
Ну а кто-то особо умный в coreutils вставил этот самый futimes() вместо стандартного utimes().

Re: такие дела

Вот, похоже, случай ENOSYS они там и не обрабатывают.