tup: fuse readirplus patch

https://github.com/gittup/tup/issues/518
This commit is contained in:
Emery Hemingway
2025-07-23 14:15:03 +01:00
parent c87b95e250
commit c0c273d264
2 changed files with 18 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
diff --git a/src/tup/server/fuse_fs.c b/src/tup/server/fuse_fs.c
index cd121630..5adf6f5f 100644
--- a/src/tup/server/fuse_fs.c
+++ b/src/tup/server/fuse_fs.c
@@ -1480,7 +1480,7 @@ static void *tup_fs_init(struct fuse_conn_info *conn, struct fuse_config *cfg)
static void *tup_fs_init(struct fuse_conn_info *conn)
#endif
{
- (void) conn;
+ conn->want = conn->want & ~FUSE_CAP_READDIRPLUS;
#ifdef FUSE3
(void) cfg;
#endif
+5 -1
View File
@@ -35,7 +35,10 @@ stdenv.mkDerivation rec {
sqlite
];
patches = [ ./fusermount-setuid.patch ];
patches = [
./fusermount-setuid.patch
./fuse_fs.patch
];
configurePhase = ''
substituteInPlace src/tup/link.sh --replace-fail '`git describe' '`echo ${version}'
@@ -95,5 +98,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl2;
maintainers = with maintainers; [ ehmry ];
platforms = platforms.unix;
broken = stdenv.hostPlatform.isDarwin;
};
}