From owner-freebsd-current@FreeBSD.ORG Fri Jan 23 01:19:00 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD5A316A4CE for ; Fri, 23 Jan 2004 01:19:00 -0800 (PST) Received: from tx1.oucs.ox.ac.uk (tx1.oucs.ox.ac.uk [129.67.1.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B93143D6B for ; Fri, 23 Jan 2004 01:18:20 -0800 (PST) (envelope-from colin.percival@wadham.ox.ac.uk) Received: from scan1.oucs.ox.ac.uk ([129.67.1.166] helo=localhost) by tx1.oucs.ox.ac.uk with esmtp (Exim 4.24) id 1AjxSF-0000Pq-II for current@freebsd.org; Fri, 23 Jan 2004 09:18:19 +0000 Received: from rx1.oucs.ox.ac.uk ([129.67.1.165]) by localhost (scan1.oucs.ox.ac.uk [129.67.1.166]) (amavisd-new, port 25) with ESMTP id 01582-01 for ; Fri, 23 Jan 2004 09:18:19 +0000 (GMT) Received: from gateway.wadham.ox.ac.uk ([163.1.161.253]) by rx1.oucs.ox.ac.uk with smtp (Exim 4.24) id 1AjxSF-0000Pm-4j for current@freebsd.org; Fri, 23 Jan 2004 09:18:19 +0000 Received: (qmail 28051 invoked by uid 0); 23 Jan 2004 09:18:19 -0000 Received: from colin.percival@wadham.ox.ac.uk by gateway by uid 71 with qmail-scanner-1.16 (sweep: 2.14/3.71. spamassassin: 2.53. Clear:. Processed in 2.815578 secs); 23 Jan 2004 09:18:19 -0000 X-Qmail-Scanner-Mail-From: colin.percival@wadham.ox.ac.uk via gateway X-Qmail-Scanner: 1.16 (Clear:. Processed in 2.815578 secs) Received: from dhcp1131.wadham.ox.ac.uk (HELO piii600.wadham.ox.ac.uk) (163.1.161.131) by gateway.wadham.ox.ac.uk with SMTP; 23 Jan 2004 09:18:16 -0000 Message-Id: <6.0.1.1.1.20040123091146.047cee70@imap.sfu.ca> X-Sender: cperciva@imap.sfu.ca (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Fri, 23 Jan 2004 09:18:15 +0000 To: "Bjoern A. Zeeb" From: Colin Percival In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: FreeBSD current mailing list Subject: Re: cp file with zero size: EINVAL X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2004 09:19:00 -0000 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 > > Revision Changes Path > 1.42 +2 -1 src/bin/cp/utils.c Colin Percival