diff options
author | Eric Wong <e@80x24.org> | 2016-05-01 22:18:35 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-01 22:18:54 +0000 |
commit | 526a1e027cacf0c49092ae90b9b5d02c9d381705 (patch) | |
tree | d9a6072a24ade17dc81bf1937a1adb258ee6f27f /lib/PublicInbox/GitHTTPBackend.pm | |
parent | c3756b2ef7af9a2f0385f1069c228ccea334ada6 (diff) | |
download | public-inbox-526a1e027cacf0c49092ae90b9b5d02c9d381705.tar.gz |
Since we use sysread, we must use sysseek for symmetry although PerlIO may be doing a real lseek with "seek", anyways. Fixes: 310819ea86ac ("git-http-backend: favor sysread for regular files")
Diffstat (limited to 'lib/PublicInbox/GitHTTPBackend.pm')
-rw-r--r-- | lib/PublicInbox/GitHTTPBackend.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/GitHTTPBackend.pm b/lib/PublicInbox/GitHTTPBackend.pm index 4b396934..937b2e9a 100644 --- a/lib/PublicInbox/GitHTTPBackend.pm +++ b/lib/PublicInbox/GitHTTPBackend.pm @@ -130,7 +130,7 @@ sub prepare_range { if ($len <= 0) { $code = 416; } else { - seek($in, $beg, SEEK_SET) or return [ 500, [], [] ]; + sysseek($in, $beg, SEEK_SET) or return [ 500, [], [] ]; push @$h, qw(Accept-Ranges bytes Content-Range); push @$h, "bytes $beg-$end/$size"; |