Group :: System/Base
RPM: util-linux
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: util-linux-2.12p-alt-lseek64.patch
Download
Download
diff -Naur util-linux-2.12p/rescuept/rescuept.c util-linux-2.12p.new/rescuept/rescuept.c
--- util-linux-2.12p/rescuept/rescuept.c 2004-12-11 03:40:12 +0300
+++ util-linux-2.12p.new/rescuept/rescuept.c 2005-02-09 17:29:16 +0300
@@ -51,13 +51,12 @@
typedef unsigned char uchar;
void read_sectors(int fd, char *buf, int sectornr, int sectorct) {
- extern long long llseek(int fd, long long offset, int whence);
long long offset;
int n;
offset = sectornr;
offset *= 512;
- if (llseek(fd, offset, SEEK_SET) != offset) {
+ if (lseek64(fd, offset, SEEK_SET) != offset) {
fprintf(stderr, "%s: llseek error\n", progname);
exit(1);
}