summaryrefslogtreecommitdiff
path: root/source3/lib/smbrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/smbrun.c')
-rw-r--r--source3/lib/smbrun.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/lib/smbrun.c b/source3/lib/smbrun.c
index 89c924260f..0642c30a75 100644
--- a/source3/lib/smbrun.c
+++ b/source3/lib/smbrun.c
@@ -84,12 +84,11 @@ int smbrun(char *cmd,char *outfile,BOOL shared)
pid_t pid;
uid_t uid = current_user.uid;
gid_t gid = current_user.gid;
-
- /*
- * Lose any kernel oplock capabilities we may have.
- */
- set_process_capability(KERNEL_OPLOCK_CAPABILITY, False);
- set_inherited_process_capability(KERNEL_OPLOCK_CAPABILITY, False);
+
+ /*
+ * Lose any kernel oplock capabilities we may have.
+ */
+ oplock_set_capability(False, False);
#ifndef HAVE_EXECL
{