Re: Cannot cp(1) file from smbfs.(MMAP problem)

From: Dimitry Andric <dimitry_at_andric.com>
Date: Fri, 28 Jan 2005 11:55:26 +0100
On 2005-01-28 at 07:29:03 takawata_at_jp.freebsd.org wrote:

> When /mnt is smbfs,
> % cp /mnt/foo.txt /tmp
> will produce
> cp: /mnt/foo.txt: Invalid argument

> And tracing syscall shows that the error is produced by
> mmap(2).

This is strange, because cp shouldn't use mmap() for copying 0-byte
files, AFAIK.  See:

http://www.freebsd.org/cgi/cvsweb.cgi/src/bin/cp/utils.c#rev1.42

Received on Fri Jan 28 2005 - 09:55:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC