diff options
author | Jim Meyering <jim@meyering.net> | 1997-12-25 17:04:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-12-25 17:04:15 +0000 |
commit | f10648f6c76d02eee019b0a53ea6121101b9d690 (patch) | |
tree | 01b3d02ec2df9e452002a1251810cae6c0e29af1 /src | |
parent | d9f1fd86d901b0e2084fc0c1504c378d36848d8f (diff) | |
download | coreutils-f10648f6c76d02eee019b0a53ea6121101b9d690.tar.xz |
(skip): Compare lseek return value with -1 to allow it
to be negative as signed value.
Diffstat (limited to 'src')
-rw-r--r-- | src/dd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |