summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>2000-10-14 01:36:18 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>2000-10-14 01:36:18 +0000
commit3775478f7b019f93d4a35b6510f65e63eb125446 (patch)
tree42e0940893f22c7e24dc695ad5b83ab76b1ae7f8 /emulators
parentUpgrade to 4.9.4. (diff)
Fix a bug when seeking in partitions larger than 4Gbytes.
Notes
Notes: svn path=/head/; revision=33805
Diffstat (limited to 'emulators')
-rw-r--r--emulators/mtools/Makefile1
-rw-r--r--emulators/mtools/files/patch-g11
2 files changed, 12 insertions, 0 deletions
diff --git a/emulators/mtools/Makefile b/emulators/mtools/Makefile
index 851c5c87aff6..fa04da310a6c 100644
--- a/emulators/mtools/Makefile
+++ b/emulators/mtools/Makefile
@@ -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/
diff --git a/emulators/mtools/files/patch-g b/emulators/mtools/files/patch-g
new file mode 100644
index 000000000000..26018354e5c9
--- /dev/null
+++ b/emulators/mtools/files/patch-g
@@ -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
+ }
+