Two problems with arla 0.25
Assar Westerlund
assar at stacken.kth.se
Sat Jun 26 01:39:57 CEST 1999
Rainer Schoepf <schoepf at uni-mainz.de> writes:
> This works, I can then access all my files in AFS. If I now create a
> file, it has owner root, not schoepf, and it is not possible to append
> something:
>
> bash-2.02# echo xxx >test
> bash-2.02# ls -l test
> -rw-r--r-- 1 root software 4 Jun 25 14:43 test
> bash-2.02# cat yyy >>test
> cat: cannot open yyy
>
> However, on another machine running Transarc AFS I see:
>
> $ ls -l test
> ---------- 1 root software 4 Jun 25 14:43 test
> schoepf at perdita(618)$
This doesn't happen to me with the current code. The appended patch I
think is what fixes the problem with the ownership. That the
permissions get to be zero is strange.
/assar
Index: arlad/messages.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/arlad/messages.c,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -w -u -w -r1.130 -r1.131
--- messages.c 1999/06/09 22:17:31 1.130
+++ messages.c 1999/06/20 02:04:41 1.131
@@ -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