summaryrefslogtreecommitdiff
path: root/source3/smbd/chgpasswd.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/chgpasswd.c')
-rw-r--r--source3/smbd/chgpasswd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index d27cf373f5..b6aaf4765b 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/smbd/chgpasswd.c
@@ -406,9 +406,7 @@ static BOOL chat_with_program(char *passwordprogram, char *name,
/*
* Lose any oplock capabilities.
*/
- set_process_capability(KERNEL_OPLOCK_CAPABILITY, False);
- set_inherited_process_capability(KERNEL_OPLOCK_CAPABILITY,
- False);
+ oplock_set_capability(False, False);
/* make sure it doesn't freeze */
alarm(20);