diff --git a/libntfs-3g/attrib.c b/libntfs-3g/attrib.c index 87aa2e18..803d48cb 100644 --- a/libntfs-3g/attrib.c +++ b/libntfs-3g/attrib.c @@ -914,8 +914,9 @@ retry: total += br; count -= br; b = (u8*)b + br; - continue; } + if (br == to_read) + continue; /* If the syscall was interrupted, try again. */ if (br == (s64)-1 && errno == EINTR) goto retry;