From: Love Hörnquist-Åstrand Date: Mon, 28 Feb 2005 20:19:10 +0000 (+0000) Subject: STABLE14-fake-admin-on-create-file-20050228 X-Git-Tag: openafs-devel-1_3_80~31 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6bb95499670abf19401b74ca0bbb214bea1a34c2;p=packages%2Fo%2Fopenafs.git STABLE14-fake-admin-on-create-file-20050228 pass back admin in status bits for create file (cherry picked from commit 248d5402fe893044e37b7395887c7e5b69829836) --- 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 */