diff options
author | jmz <jmz@FreeBSD.org> | 2000-10-14 09:36:18 +0800 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 2000-10-14 09:36:18 +0800 |
commit | 74310777cc8ed9c5bd45dcdcee8d395ab4e66f20 (patch) | |
tree | 7eb4648d5931fa702c586153d355b41559af9e78 /emulators/mtools | |
parent | 3a1a206d6930b26eb09b052001e501eafbfeb0ab (diff) | |
download | freebsd-ports-graphics-74310777cc8ed9c5bd45dcdcee8d395ab4e66f20.tar.gz freebsd-ports-graphics-74310777cc8ed9c5bd45dcdcee8d395ab4e66f20.tar.zst freebsd-ports-graphics-74310777cc8ed9c5bd45dcdcee8d395ab4e66f20.zip |
Fix a bug when seeking in partitions larger than 4Gbytes.
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 851c5c87aff..fa04da310a6 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 00000000000..26018354e5c --- /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 + } + |