diff options
author | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2000-10-14 01:36:18 +0000 |
---|---|---|
committer | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2000-10-14 01:36:18 +0000 |
commit | 3775478f7b019f93d4a35b6510f65e63eb125446 (patch) | |
tree | 42e0940893f22c7e24dc695ad5b83ab76b1ae7f8 /emulators/mtools | |
parent | cdf3cb97b9f3a4c3a74f6a2ee873fb24dd9d27e1 (diff) | |
download | ports-3775478f7b019f93d4a35b6510f65e63eb125446.tar.gz ports-3775478f7b019f93d4a35b6510f65e63eb125446.zip |
Fix a bug when seeking in partitions larger than 4Gbytes.
Notes
Notes:
svn path=/head/; revision=33805
Diffstat (limited to 'emulators/mtools')
-rw-r--r-- | emulators/mtools/Makefile | 1 | ||||
-rw-r--r-- | emulators/mtools/files/patch-g | 11 |
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 + } + |