Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37901505
en ru br
ALT Linux repos
S:2.39.2-alt1
5.0: 2.14.1-alt1
4.1: 2.13-alt8
4.0: 2.12r-alt6
3.0: 2.12q-alt1

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


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);
 	}
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin