pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/filesystems/fuse-lzofs
Module Name: pkgsrc
Committed By: pho
Date: Sun Jan 9 17:30:30 UTC 2022
Modified Files:
pkgsrc/filesystems/fuse-lzofs: Makefile distinfo
pkgsrc/filesystems/fuse-lzofs/patches: patch-ab
Log Message:
Fix an upstream bug: truncate() writes a wrong file size in the header
The upstream has disappeared. We can't send the patch anywhere.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/filesystems/fuse-lzofs/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/filesystems/fuse-lzofs/distinfo
cvs rdiff -u -r1.5 -r1.6 pkgsrc/filesystems/fuse-lzofs/patches/patch-ab
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/filesystems/fuse-lzofs/Makefile
diff -u pkgsrc/filesystems/fuse-lzofs/Makefile:1.7 pkgsrc/filesystems/fuse-lzofs/Makefile:1.8
--- pkgsrc/filesystems/fuse-lzofs/Makefile:1.7 Sun Jan 9 15:14:39 2022
+++ pkgsrc/filesystems/fuse-lzofs/Makefile Sun Jan 9 17:30:30 2022
@@ -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/
Index: pkgsrc/filesystems/fuse-lzofs/distinfo
diff -u pkgsrc/filesystems/fuse-lzofs/distinfo:1.8 pkgsrc/filesystems/fuse-lzofs/distinfo:1.9
--- pkgsrc/filesystems/fuse-lzofs/distinfo:1.8 Sun Jan 9 15:14:39 2022
+++ pkgsrc/filesystems/fuse-lzofs/distinfo Sun Jan 9 17:30:30 2022
@@ -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
Index: pkgsrc/filesystems/fuse-lzofs/patches/patch-ab
diff -u pkgsrc/filesystems/fuse-lzofs/patches/patch-ab:1.5 pkgsrc/filesystems/fuse-lzofs/patches/patch-ab:1.6
--- pkgsrc/filesystems/fuse-lzofs/patches/patch-ab:1.5 Sun Jan 9 15:14:39 2022
+++ pkgsrc/filesystems/fuse-lzofs/patches/patch-ab Sun Jan 9 17:30:30 2022
@@ -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 @@ $NetBSD: patch-ab,v 1.5 2022/01/09 15:14
* 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 @@ $NetBSD: patch-ab,v 1.5 2022/01/09 15:14
}
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