r14600: Refactor capability interface from being IRIX-specific to using only
[ab/samba.git/.git] / source3 / lib / smbrun.c
index 4f5525039f5ab4d538d08678015941e840bb8f84..521b1bf761e211d1aeba86af813ccd857f82f2ff 100644 (file)
@@ -64,7 +64,7 @@ int smbrun(const char *cmd, int *outfd)
        /*
         * Lose any kernel oplock capabilities we may have.
         */
-       oplock_set_capability(False, False);
+       drop_effective_capability(KERNEL_OPLOCK_CAPABILITY);
 
        /* point our stdout at the file we want output to go into */
 
@@ -196,7 +196,7 @@ int smbrunsecret(const char *cmd, const char *secret)
        /*
         * Lose any kernel oplock capabilities we may have.
         */
-       oplock_set_capability(False, False);
+       drop_effective_capability(KERNEL_OPLOCK_CAPABILITY);
 
        /* build up an input pipe */
        if(pipe(ifd)) {