Bug#374694: "cvs -n import -X" fails when new directories are to be imported

2006-06-22 Thread Zak B. Elep

Hi Florian! =)

On 6/21/06, Florian Zschocke <[EMAIL PROTECTED]> wrote:

Simulating an import to CVS using the -X switch fails, when new
directories would be created in the repository by the import. The
import with the -X switch would import to the Attic. It tires to
create the Attic directory, ignoring the noexec flag, which will fail
because the upper directory will not have been created due to the
noexec flag.


[...]


A patch is provided for import.c that adds a check for the noexec flag
to the process_import_file() function when creating the Attic
directory.

Upstream BugId is #16896


Thanks for the bug and patch!  I'll check this ASAP, hopefully it will
go into -4 soon!

Cheers,

Zakame

--
Zak B. Elep  ||  http://zakame.spunge.org
[EMAIL PROTECTED]  ||  [EMAIL PROTECTED]
1486 7957 454D E529 E4F1  F75E 5787 B1FD FA53 851D


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#374694: "cvs -n import -X" fails when new directories are to be imported

2006-06-20 Thread Florian Zschocke

Package: cvs
Version: 1.12.13
Tags: patch

Simulating an import to CVS using the -X switch fails, when new
directories would be created in the repository by the import. The
import with the -X switch would import to the Attic. It tires to
create the Attic directory, ignoring the noexec flag, which will fail
because the upper directory will not have been created due to the
noexec flag.

Testcase:
$ cvs -d /srv/cvs -n import -d -ko -X oe Ope ope-20060405
cvs [import aborted]: cannot make directory `/srv/cvs/oe/Attic': No
such file or directory

A patch is provided for import.c that adds a check for the noexec flag
to the process_import_file() function when creating the Attic
directory.

Upstream BugId is #16896

Regards,
Florian Zschocke


25_import-n-X
Description: Binary data