diff options
author | jmz <jmz@FreeBSD.org> | 2000-10-14 01:36:18 +0000 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 2000-10-14 01:36:18 +0000 |
commit | 74310777cc8ed9c5bd45dcdcee8d395ab4e66f20 (patch) | |
tree | 7eb4648d5931fa702c586153d355b41559af9e78 | |
parent | 3a1a206d6930b26eb09b052001e501eafbfeb0ab (diff) | |
download | FreeBSD-ports-74310777cc8ed9c5bd45dcdcee8d395ab4e66f20.zip FreeBSD-ports-74310777cc8ed9c5bd45dcdcee8d395ab4e66f20.tar.gz |
Fix a bug when seeking in partitions larger than 4Gbytes.
-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 851c5c8..fa04da3 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 0000000..2601835 --- /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 + } + |