diff --git a/commands/crc.c b/commands/crc.c index 6983c9d..b2dbfc7 100644 --- a/commands/crc.c +++ b/commands/crc.c @@ -67,10 +67,12 @@ return 1; } - if (lseek(fd, start, SEEK_SET) == -1) { - perror("lseek"); - err = 1; - goto out; + if (start > 0) { + if (lseek(fd, start, SEEK_SET) == -1) { + perror("lseek"); + err = 1; + goto out; + } } buf = xmalloc(4096);