summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-05-28 13:20:16 +0200
committerGünther Deschner <gd@samba.org>2008-05-28 13:22:52 +0200
commit611072fc1cd94e6c9d56ce910fd13f007f6ecb84 (patch)
treebf09fa76bfc8f3f148777ed6fde08e89f21b1c78 /source3/lib
parent87c15f5a57c4c7e35ac87fa1c90faeeac7c86250 (diff)
downloadsamba-611072fc1cd94e6c9d56ce910fd13f007f6ecb84.tar.gz
samba-611072fc1cd94e6c9d56ce910fd13f007f6ecb84.tar.bz2
samba-611072fc1cd94e6c9d56ce910fd13f007f6ecb84.zip
Fix Bug #5285. (libcap header mismatch)
Can someone with gpfs available test this ? The only codepath using this function is the modules/gpfs.c module. The fix resolves at least the build issues Samba has with recent kernel / libcap versions by using the portable cap_get_proc()/cap_set_proc() interface (instead of using capget/capset). Guenther (This used to be commit 177955141247a4eb56ba0d82dc1add7f52175c40)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/system.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index fa50955ef6..eabb6d6dc4 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -733,6 +733,11 @@ static bool set_process_capability(enum smbd_capability capability,
cap_vals[num_cap_vals++] = CAP_MKNOD;
#endif
break;
+ case LEASE_CAPABILITY:
+#ifdef CAP_LEASE
+ cap_vals[num_cap_vals++] = CAP_LEASE;
+#endif
+ break;
}
SMB_ASSERT(num_cap_vals <= ARRAY_SIZE(cap_vals));