From 67155bbb6fa2c91aecb6af2a52cb0ff186d995a9 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 1 Aug 2006 23:33:47 +0000 Subject: [PATCH] STABLE14-viced-capability-writelock-20060801 add write loc king capability (cherry picked from commit 80e88d6a80fc3fc0d15650f20ea7fc3fece1a1e4) --- src/viced/afsfileprocs.c | 2 +- src/viced/viced_prototypes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 16e161bca..0b18714b0 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -6187,7 +6187,7 @@ SRXAFS_GetCapabilities(struct rx_call * acall, Capabilities * capabilities) dataBytes = 1 * sizeof(afs_int32); dataBuffP = (afs_int32 *) malloc(dataBytes); - dataBuffP[0] = CAPABILITY_ERRORTRANS; + dataBuffP[0] = CAPABILITY_ERRORTRANS | CAPABILITY_WRITELOCKACL; capabilities->Capabilities_len = dataBytes / sizeof(afs_int32); capabilities->Capabilities_val = dataBuffP; diff --git a/src/viced/viced_prototypes.h b/src/viced/viced_prototypes.h index 17795b312..f60593f0b 100644 --- a/src/viced/viced_prototypes.h +++ b/src/viced/viced_prototypes.h @@ -4,5 +4,5 @@ void init_sys_error_to_et(void); /* First 32 bits of capabilities */ #define CAPABILITY_ERRORTRANS (1<<0) - +#define CAPABILITY_WRITELOCKACL (1<<2) #define CAPABILITY_BITS 1 -- 2.39.5