bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BIG:export failure if Template


From: Momme Maraun
Subject: BIG:export failure if Template
Date: Mon, 18 Jun 2001 15:00:48 +0200

Hello,

./cvs export -r HEAD test/momme
cvs export: Updating test/momme
U test/momme/checkx.sh
U test/momme/copyRCS.sh
U test/momme/getversion.sh
U test/momme/import.pl
cvs [export aborted]: cannot write <CVS/Template file>: No such file or
directory

If i run the command many times, it works ( each directory one error )-:

The follow function in cvs-1.11.1/src/client.c is the problem

static void
read_counted_file (filename, fullname)
    char *filename;
    char *fullname;
{
    char *size_string;
    size_t size;
    char *buf;

    /* Pointers in buf to the place to put data which will be read,
       and the data which needs to be written, respectively.  */
    char *pread;
    char *pwrite;
    /* Number of bytes left to read and number of bytes in buf waiting
to
       be written, respectively.  */
    size_t nread;
    size_t nwrite;

    FILE *fp;

    read_line (&size_string);
    if (size_string[0] == 'z')
        error (1, 0, "\
protocol error: compressed files not supported for that operation");
    /* FIXME: should be doing more error checking, probably.  Like using

       strtoul and making sure we used up the whole line.  */
    size = atoi (size_string);
    free (size_string);

    /* A more sophisticated implementation would use only a limited
amount
       of buffer space (8K perhaps), and read that much at a time.  We
allocate
       a buffer for the whole file only to make it easy to keep track
what
       needs to be read and written.  */
    buf = xmalloc (size);

    /* FIXME-someday: caller should pass in a flag saying whether it
       is binary or not.  I haven't carefully looked into whether
       CVS/Template files should use local text file conventions or
       not.  */
    fp = CVS_FOPEN (filename, "wb");
    if (fp == NULL) {
        printf( "Hier bin ich nun ich Tor.\n" );
        error (1, errno, "cannot write %s", fullname);
    }

Maybye it could help you.

Or i have a problem




reply via email to

[Prev in Thread] Current Thread [Next in Thread]