]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Remove KERNEL_OPLOCK_CAPABILITY
authorVolker Lendecke <vl@samba.org>
Thu, 8 Jan 2026 13:48:32 +0000 (14:48 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 12 Jan 2026 09:36:33 +0000 (09:36 +0000)
This was only used in the IRIX oplock code, which was removed in 2018.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/include/smb.h
source3/lib/system.c

index 88065e0e8ebf238925d4b6694d62ba647d2f91d8..dcfc4c097dbdcb728d11403ab2b9ebb0e1ca8269 100644 (file)
@@ -475,7 +475,6 @@ Offset  Data                  length.
  */
 
 enum smbd_capability {
-    KERNEL_OPLOCK_CAPABILITY,
     DMAPI_ACCESS_CAPABILITY,
     LEASE_CAPABILITY,
     DAC_OVERRIDE_CAPABILITY
index 706e080880e3ba0fac5d46995bb8597d22935ce3..372a92657d490880d7c8722f4bbe15c0a57be80d 100644 (file)
@@ -608,12 +608,6 @@ static bool set_process_capability(enum smbd_capability capability,
                 * declaration of cap_vals[] above just to be
                 * trivially safe to never overwrite cap_vals[].
                 */
-               case KERNEL_OPLOCK_CAPABILITY:
-#ifdef CAP_NETWORK_MGT
-                       /* IRIX has CAP_NETWORK_MGT for oplocks. */
-                       cap_vals[num_cap_vals++] = CAP_NETWORK_MGT;
-#endif
-                       break;
                case DMAPI_ACCESS_CAPABILITY:
 #ifdef CAP_DEVICE_MGT
                        /* IRIX has CAP_DEVICE_MGT for DMAPI access. */