Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

rdiff runs with: IO error on fedora #1

Open
bigplum opened this issue Sep 3, 2013 · 1 comment
Open

rdiff runs with: IO error on fedora #1

bigplum opened this issue Sep 3, 2013 · 1 comment

Comments

@bigplum
Copy link

bigplum commented Sep 3, 2013

$ uname -a
Linux localhost.localdomain 3.9.2-200.fc18.x86_64 #1 SMP Mon May 13 13:59:47 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

$ ./rdiff signature buf.c s.out
rdiff: ERROR: IO error

I found that the IO error was returned by rs_outfilebuf_drain()

present = buf->next_out - fb->buf;
if (present > 0) {
    int result;

    assert(present > 0);

    result = present < (f->len - f->fptr) ? present : (f->len - f->fptr);
    memcpy(f->src + f->fptr, fb->buf, result);
    f->fptr += result;
    if (present != result) {
        return RS_IO_ERROR;
    }
@redserpent7
Copy link

have the same issue for Windows

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants