pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/filesystems/fuse-lzofs Fix an upstream bug: truncate()...
details: https://anonhg.NetBSD.org/pkgsrc/rev/070b7034d280
branches: trunk
changeset: 371351:070b7034d280
user: pho <pho%pkgsrc.org@localhost>
date: Sun Jan 09 17:30:30 2022 +0000
description:
Fix an upstream bug: truncate() writes a wrong file size in the header
The upstream has disappeared. We can't send the patch anywhere.
diffstat:
filesystems/fuse-lzofs/Makefile | 4 ++--
filesystems/fuse-lzofs/distinfo | 4 ++--
filesystems/fuse-lzofs/patches/patch-ab | 23 ++++++++++++++++++++++-
3 files changed, 26 insertions(+), 5 deletions(-)
diffs (69 lines):
diff -r ec5e15ebb1e4 -r 070b7034d280 filesystems/fuse-lzofs/Makefile
--- a/filesystems/fuse-lzofs/Makefile Sun Jan 09 16:33:19 2022 +0000
+++ b/filesystems/fuse-lzofs/Makefile Sun Jan 09 17:30:30 2022 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.7 2022/01/09 15:14:39 pho Exp $
+# $NetBSD: Makefile,v 1.8 2022/01/09 17:30:30 pho Exp $
#
DISTNAME= LZOlayer_fs-20060306
-PKGREVISION= 1
PKGNAME= fuse-${DISTNAME:S/LZOlayer_fs/lzofs/}
+PKGREVISION= 2
CATEGORIES= filesystems
#MASTER_SITES= http://north.one.pl/~kazik/pub/LZOlayer/
diff -r ec5e15ebb1e4 -r 070b7034d280 filesystems/fuse-lzofs/distinfo
--- a/filesystems/fuse-lzofs/distinfo Sun Jan 09 16:33:19 2022 +0000
+++ b/filesystems/fuse-lzofs/distinfo Sun Jan 09 17:30:30 2022 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.8 2022/01/09 15:14:39 pho Exp $
+$NetBSD: distinfo,v 1.9 2022/01/09 17:30:30 pho Exp $
BLAKE2s (LZOlayer_fs-20060306.tar.gz) = d2883e04a832f675c6eac3c87301626d59ad873d42fb5ab3a24639134ca12816
SHA512 (LZOlayer_fs-20060306.tar.gz) = 7696ab1c16e9f9ea8183f408fa7fbadfdf3d29c8927e68aa58d7b533b1c365cbc906a161bb6973ea4724ca9e0c679ea5b772848cc047053028f33218246d5097
Size (LZOlayer_fs-20060306.tar.gz) = 17669 bytes
SHA1 (patch-aa) = 70df68443cb7b4d9eec5effea0dbb0e3fc666551
-SHA1 (patch-ab) = d94590c7bce2920c0e41861225e18595be15d832
+SHA1 (patch-ab) = 80a20a77909ab60f31049346ff18fedce9148619
diff -r ec5e15ebb1e4 -r 070b7034d280 filesystems/fuse-lzofs/patches/patch-ab
--- a/filesystems/fuse-lzofs/patches/patch-ab Sun Jan 09 16:33:19 2022 +0000
+++ b/filesystems/fuse-lzofs/patches/patch-ab Sun Jan 09 17:30:30 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.5 2022/01/09 15:14:39 pho Exp $
+$NetBSD: patch-ab,v 1.6 2022/01/09 17:30:30 pho Exp $
* Use the correct API version. fuse_operations::readdir() was
introduced in FUSE 2.3, not 2.2.
@@ -12,6 +12,9 @@
* Respect the mode_t in mknod.
+* Fix an upstream bug: truncate() writes a wrong file size in the
+ header.
+
--- LZOlayer_fs.c.orig 2006-05-18 19:23:35.000000000 +0000
+++ LZOlayer_fs.c
@@ -7,9 +7,10 @@
@@ -103,3 +106,21 @@
}
free(xPath);
+@@ -425,7 +451,7 @@ static int LZOlayer_truncate(const char
+ ftruncate(fd, curr_pos);
+
+ lseek(fd, 0, SEEK_SET);
+- write(fd, &curr_pos, sizeof(off_t));
++ write(fd, &size, sizeof(off_t));
+
+ close(fd);
+ free(mem);
+@@ -469,7 +495,7 @@ static int LZOlayer_truncate(const char
+ ftruncate(fd, curr_pos);
+
+ lseek(fd, 0, SEEK_SET);
+- write(fd, &curr_pos, sizeof(off_t));
++ write(fd, &size, sizeof(off_t));
+
+ close(fd);
+ free(mem);
Home |
Main Index |
Thread Index |
Old Index