arla 0.25 and cvs

Assar Westerlund assar at stacken.kth.se
Sat Jun 19 20:09:56 CEST 1999


Enrico Scholz <enrico.scholz at wirtschaft.tu-chemnitz.de> writes:
> ------------------
> open("/home/ensc/afs/ensc/PUBLIC/test/test/,ttt.txt,", O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0444) = 10
> fchmod(10, 0100444)                     = 0
> fcntl(10, F_GETFL)                      = 0x1 (flags O_WRONLY)
> fstat(10, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
> _llseek(10, 0, {0}, SEEK_CUR)           = 0
> write(10, "head\t1.1;\naccess;\nsymbols;\nl"..., 137) = 137
> write(10, "\n\n1.1\nlog\n@*** empty log mes"..., 47) = 47
> close(10)                               = -1 EACCES (Permission denied)
> ------------------

Thanks for reporting this bug.  Can you try the appended patch?

/assar


Index: arlad/messages.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/arlad/messages.c,v
retrieving revision 1.130
diff -u -w -u -w -r1.130 messages.c
--- messages.c	1999/06/09 22:17:31	1.130
+++ messages.c	1999/06/16 20:18:39
@@ -831,6 +831,7 @@
 
      parent_fid = (VenusFid *)&h->parent_handle;
      xfs_attr2afsstorestatus(&h->attr, &store_status);
+     if (connected_mode != CONNECTED) {
      if (!(store_status.Mask & SS_OWNER)) {
 	 store_status.Owner = h->cred.uid;
 	 store_status.Mask |= SS_OWNER;
@@ -843,6 +844,7 @@
 	 store_status.ClientModTime = now.tv_sec;
 	 store_status.Mask |= SS_MODTIME;
      }
+     }
      ce = cred_get (parent_fid->Cell, h->cred.pag, CRED_ANY);
      assert (ce != NULL);
 
@@ -991,6 +993,7 @@
      assert (ce != NULL);
 
      xfs_attr2afsstorestatus(&h->attr, &store_status);
+     if (connected_mode != CONNECTED) {
      if (!(store_status.Mask & SS_OWNER)) {
 	 store_status.Owner = h->cred.uid;
 	 store_status.Mask |= SS_OWNER;
@@ -1002,6 +1005,7 @@
 
 	 store_status.ClientModTime = now.tv_sec;
 	 store_status.Mask |= SS_MODTIME;
+	 }
      }
 
      do {





More information about the Arla-drinkers mailing list