Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jan 2004 09:18:15 +0000
From:      Colin Percival <colin.percival@wadham.ox.ac.uk>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        FreeBSD current mailing list <current@freebsd.org>
Subject:   Re: cp file with zero size: EINVAL
Message-ID:  <6.0.1.1.1.20040123091146.047cee70@imap.sfu.ca>
In-Reply-To: <Pine.BSF.4.53.0401230845320.25498@e0-0.zab2.int.zabbadoz.n et>
References:  <Pine.BSF.4.53.0401230845320.25498@e0-0.zab2.int.zabbadoz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@host:~> touch abc
>bz@host:~> ls -l abc
>-rw-rw-r--    1 bz       staff           0 Jan 23 08:51 abc
>bz@host:~> cp abc abd
>cp: abc: Invalid argument

   I suspect that this problem was fixed by the following commit; try
using a more recent cp and tell us if it's still broken.

 >alc         2003/11/12 21:26:55 PST
 >
 >  FreeBSD src repository
 >
 >  Modified files:
 >    bin/cp               utils.c
 >  Log:
 >  Don't mmap(2) and munmap(2) zero-length files.
 >
 >  Submitted by:   Wiktor Niesiobedzki <bsd@w.evip.pl>
 >
 >  Revision  Changes    Path
 >  1.42      +2 
-1 
<http://cvsweb.FreeBSD.org//src/bin/cp/utils.c.diff?r1=1.41&r2=1.42>src/bin/cp/utils.c

Colin Percival





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.1.1.1.20040123091146.047cee70>