From: Love Hörnquist-Åstrand Date: Mon, 28 Feb 2005 20:18:11 +0000 (+0000) Subject: fake-admin-on-create-file-20050228 X-Git-Tag: openafs-devel-1_5_0~736 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=248d5402fe893044e37b7395887c7e5b69829836;p=packages%2Fo%2Fopenafs.git fake-admin-on-create-file-20050228 pass back admin in status bits for create file --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 4ce6a6995..fce5f6716 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -3638,8 +3638,8 @@ SAFSS_CreateFile(struct rx_call *acall, struct AFSFid *DirFid, char *Name, Update_TargetVnodeStatus(targetptr, TVS_CFILE, client, InStatus, parentptr, volptr, 0); - /* set up the return status for the parent dir and the newly created file */ - GetStatus(targetptr, OutFidStatus, rights, anyrights, parentptr); + /* set up the return status for the parent dir and the newly created file, and since the newly created file is owned by the creator, give it PRSFS_ADMINISTER to tell the client its the owner of the file */ + GetStatus(targetptr, OutFidStatus, rights | PRSFS_ADMINISTER, anyrights, parentptr); GetStatus(parentptr, OutDirStatus, rights, anyrights, 0); /* convert the write lock to a read lock before breaking callbacks */