1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Fix a bug when seeking in partitions larger than 4Gbytes.

This commit is contained in:
Jean-Marc Zucconi 2000-10-14 01:36:18 +00:00
parent cdf3cb97b9
commit 3775478f7b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33805
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= mtools
PORTVERSION= 3.9.6
PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ftp://ftp.tux.org/pub/knaff/mtools/ \
http://mtools.linux.lu/

View File

@ -0,0 +1,11 @@
--- llong.c~ Wed Mar 17 23:43:14 1999
+++ llong.c Mon Oct 9 18:21:24 2000
@@ -51,7 +51,7 @@
else
return -1;
#else
- return lseek(fd, (off_t) where, whence);
+ return lseek(fd, (off_t) where, whence) == (off_t) -1 ? -1 : 0;
#endif
}