Incorrect Permission Update?

Love lha at stacken.kth.se
Mon Sep 25 11:54:26 CEST 2000


Willi Langenberger <wlang at wu-wien.ac.at> writes:

> It seems that under some conditions (without a PAG) arla doesn't
> update the access permissions properly. Here is what i observed
> (Redhat 6.1/6.2, arla-0.33/0.34.3):

I think this only is happing for root (uid 0), right ? You can try the the
patch below and see it that solves your problem.

Love


Index: fcache.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/arlad/fcache.c,v
retrieving revision 1.292
retrieving revision 1.293
diff -u -w -u -w -r1.292 -r1.293
--- arlad/fcache.c	2000/09/15 21:07:29	1.292
+++ arlad/fcache.c	2000/09/25 09:50:17	1.293
@@ -3019,7 +3019,7 @@
 {
     FCacheEntry *old;
     FCacheEntry *e;
-    int type;
+    int type, i;
     int error;
 
     *res = NULL;
@@ -3053,7 +3053,10 @@
     memset (&e->status,   0, sizeof(e->status));
     memset (&e->callback, 0, sizeof(e->callback));
     memset (&e->volsync,  0, sizeof(e->volsync));
-    memset (e->acccache,  0, sizeof(e->acccache));
+    for (i = 0; i < NACCESS; i++) {
+	e->acccache[i].cred = ARLA_NO_AUTH_CRED;
+	e->acccache[i].access = 0;
+    }
     e->anonaccess      = 0;
     e->flags.usedp     = TRUE;
     e->flags.datap     = FALSE;





More information about the Arla-drinkers mailing list