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:
parent
cdf3cb97b9
commit
3775478f7b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33805
@ -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/
|
||||
|
11
emulators/mtools/files/patch-g
Normal file
11
emulators/mtools/files/patch-g
Normal 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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user