On Wed, Nov 12, 2003 at 08:18:05PM +0100, Dimitry Andric wrote: > On 2003-11-11 at 15:31:15 Wiktor Niesiobedzki wrote: > > > $ mkdir foo > > $ cd foo > > $ touch foo > > $ cp foo foo2 > > cp: foo: Invalid argument > Anyway, cp (and possibly other tools which use munmap) will need to be > fixed. For now, I simply disabled the VM_AND_BUFFER_CACHE_SYNCHRONIZED > flag in the Makefile for cp, which simply disables the whole mmap'ing > stuff. I don't notice any difference without it... I would still propose my one-line solution, to use mmap only when the file size is greater than 0. As far as I looked into source tree, most usages of munmap are in unsafe way - i.e. without checking the return value. Is there someone willing to commit this trival change? For now, some number of ports will refuse tu build/install. Cheers, Wiktor Niesiobedzki PS. The acctual patch attached.
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:28 UTC