From 9e1a0f8a0d5e77a490992ace7a2d7839a361c661 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 21 Oct 2005 00:32:40 +0000 Subject: [PATCH] viced-audit-createfile-20051020 add the FID of the created file to the audit output for CreateFileEvent --- src/viced/afsfileprocs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.39.5