From 6bb95499670abf19401b74ca0bbb214bea1a34c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Love=20H=C3=B6rnquist-=C3=85strand?= Date: Mon, 28 Feb 2005 20:19:10 +0000 Subject: [PATCH] STABLE14-fake-admin-on-create-file-20050228 pass back admin in status bits for create file (cherry picked from commit 248d5402fe893044e37b7395887c7e5b69829836) --- src/viced/afsfileprocs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.5