about summary refs log tree commit diff
path: root/pkgs/os-specific/gnu/smbfs/samba-without-byte-range-locks.patch
blob: 893a29c7539876ec46dde79ce9c787630d54e55d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
 	}