cp file with zero size: EINVAL

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Fri Jan 23 01:50:15 PST 2004


On Fri, 23 Jan 2004, Colin Percival wrote:

> At 09:08 23/01/2004, Bjoern A. Zeeb wrote:
> >I am running a kernel about a week old (HEAD) and some world from
> >around 22 Sep.  For some reason I had not installed world yet (though
> >built).
> >
> >Now I am seeing this:
> >
> >bz at host:~> touch abc
> >bz at host:~> ls -l abc
> >-rw-rw-r--    1 bz       staff           0 Jan 23 08:51 abc
> >bz at host:~> cp abc abd
> >cp: abc: Invalid argument
>
>    I suspect that this problem was fixed by the following commit; try

aah. that had been the commit..

> using a more recent cp and tell us if it's still broken.

% cd /usr/obj/u2/src/HEAD/compile-20040116-01/
% touch abc
% ./cp abc abd
% echo $?
0

works ok. so installing the already built world will fix this.

thanks.

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT
56 69 73 69 74				http://www.zabbadoz.net/


More information about the freebsd-current mailing list