From: Jeffrey Altman Date: Fri, 21 Oct 2005 00:32:40 +0000 (+0000) Subject: viced-audit-createfile-20051020 X-Git-Tag: openafs-devel-1_5_0~227 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9e1a0f8a0d5e77a490992ace7a2d7839a361c661;p=packages%2Fo%2Fopenafs.git viced-audit-createfile-20051020 add the FID of the created file to the audit output for CreateFileEvent --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index c19f92c5d..f33719f40 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -3708,6 +3708,8 @@ SRXAFS_CreateFile(struct rx_call * acall, struct AFSFid * DirFid, char *Name, TM_GetTimeOfDay(&opStartTime, 0); #endif /* FS_STATS_DETAILED */ + memset(OutFid, 0, sizeof(struct AFSFid)); + if ((code = CallPreamble(acall, ACTIVECALL, &tcon))) goto Bad_CreateFile; @@ -3740,7 +3742,7 @@ SRXAFS_CreateFile(struct rx_call * acall, struct AFSFid * DirFid, char *Name, osi_auditU(acall, CreateFileEvent, code, AUD_ID, t_client ? t_client->ViceId : 0, - AUD_FID, DirFid, AUD_STR, Name, AUD_END); + AUD_FID, DirFid, AUD_STR, Name, AUD_FID, OutFid, AUD_END); return code; } /*SRXAFS_CreateFile */