Репозитории ALT
S: | 2.39.2-alt1 |
5.1: | 2.16.1-alt1 |
4.1: | 2.13-alt8 |
4.0: | 2.12r-alt6 |
3.0: | 2.12q-alt1 |
Группа :: Система/Основа
Пакет: util-linux
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: util-linux-2.12p-alt-lseek64.patch
Скачать
Скачать
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);
}