about summary refs log tree commit diff
path: root/pkgs/os-specific/gnu/smbfs/samba-without-byte-range-locks.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/gnu/smbfs/samba-without-byte-range-locks.patch')
-rw-r--r--pkgs/os-specific/gnu/smbfs/samba-without-byte-range-locks.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/os-specific/gnu/smbfs/samba-without-byte-range-locks.patch b/pkgs/os-specific/gnu/smbfs/samba-without-byte-range-locks.patch
new file mode 100644
index 0000000000000..893a29c753987
--- /dev/null
+++ b/pkgs/os-specific/gnu/smbfs/samba-without-byte-range-locks.patch
@@ -0,0 +1,14 @@
+Since GNU/Hurd doesn't support byte-range file locks, shamelessly
+disable them to allow the SMB client library to work (it uses TDB
+to access /etc/samba/private/secrets.tdb, for instance.)
+
+--- samba/lib/tdb/common/lock.c	2010-02-08 16:12:57.000000000 +0100
++++ samba/lib/tdb/common/lock.c	2012-03-01 23:39:02.000000000 +0100
+@@ -48,7 +48,7 @@ int tdb_brlock(struct tdb_context *tdb,
+ 	struct flock fl;
+ 	int ret;
+ 
+-	if (tdb->flags & TDB_NOLOCK) {
++	if (1) {
+ 		return 0;
+ 	}