[882] in arla-drinkers

home help back first fref pref prev next nref lref last post

Re: arla 0.25 and cvs

daemon@ATHENA.MIT.EDU (Assar Westerlund)
Sat Jun 19 14:21:42 1999

From owner-arla-drinkers@stacken.kth.se Sat Jun 19 18:21:41 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 12698 invoked from network); 19 Jun 1999 18:21:40 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 19 Jun 1999 18:21:40 -0000
Received: (from majordom@localhost)
	by sundance.stacken.kth.se (8.8.8/8.8.8) id UAA26095
	for arla-drinkers-list; Sat, 19 Jun 1999 20:09:56 +0200 (MET DST)
Received: from assaris.sics.se (assaris.sics.se [193.10.66.108])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id UAA26091
	for <arla-drinkers@stacken.kth.se>; Sat, 19 Jun 1999 20:09:52 +0200 (MET DST)
Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.7.3) id UAA16500; Sat, 19 Jun 1999 20:10:07 +0200 (CEST)
From: Assar Westerlund <assar@stacken.kth.se>
To: Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
Cc: arla-drinkers@stacken.kth.se
Subject: Re: arla 0.25 and cvs
References: <m3n1ygurq4.fsf@ultra.csn.tu-chemnitz.de>
Mime-Version: 1.0 (generated by tm-edit 7.68)
Content-Type: multipart/mixed;
 boundary="Multipart_Sat_Jun_19_20:10:07_1999-1"
Content-Transfer-Encoding: 7bit
Date: 19 Jun 1999 20:10:07 +0200
In-Reply-To: Enrico Scholz's message of "04 Jun 1999 13:31:47 +0200"
Message-ID: <5l909gt62o.fsf@assaris.sics.se>
Lines: 64
X-Mailer: Gnus v5.5/Emacs 19.34
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk

--Multipart_Sat_Jun_19_20:10:07_1999-1
Content-Type: text/plain; charset=US-ASCII

Enrico Scholz <enrico.scholz@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

--Multipart_Sat_Jun_19_20:10:07_1999-1
Content-Type: text/plain; charset=US-ASCII

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 {

--Multipart_Sat_Jun_19_20:10:07_1999-1--

home help back first fref pref prev next nref lref last post