Re: munmap cp

2003-11-12 Thread Dimitry Andric
On 2003-11-11 at 15:31:15 Wiktor Niesiobedzki wrote: $ mkdir foo $ cd foo $ touch foo $ cp foo foo2 cp: foo: Invalid argument Yes, I've just run into this problem too, because a large number of ports failed to install because of it. This is because they cp -r a number of directories to be

Re: munmap cp [patch enclosed]

2003-11-12 Thread Wiktor Niesiobedzki
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

munmap cp

2003-11-11 Thread Wiktor Niesiobedzki
Hi, The simple scenario: $ mkdir foo $ cd foo $ touch foo $ cp foo foo2 cp: foo: Invalid argument The problem lies in: src/bin/cp/utils.c:163 if (munmap(p, fs-st_size) 0) { warn(%s, entp-fts_path); rval = 1;