summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dd.c b/src/dd.c
index 66a9b1180..f71502e62 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -431,7 +431,7 @@ skip (int fdesc, char *file, uintmax_t records, size_t blocksize,
operation, fall back on using read. */
o = records * blocksize;
if (o / blocksize != records
- || lseek (fdesc, o, SEEK_SET) < 0)
+ || lseek (fdesc, o, SEEK_SET) == -1)
{
while (records-- > 0)
{