[Cvs-nserver-commits] CVS: cvs-nserver/src update.c,1.1.1.6.4.5,1.1.1.6.4.6
Brought to you by:
tyranny
From: Alexey M. <ty...@us...> - 2002-05-25 15:58:40
|
Update of /cvsroot/cvs-nserver/cvs-nserver/src In directory usw-pr-cvs1:/tmp/cvs-serv1528 Modified Files: Tag: NCLI-1-11-1 update.c Log Message: Log updates Index: update.c =================================================================== RCS file: /cvsroot/cvs-nserver/cvs-nserver/src/update.c,v retrieving revision 1.1.1.6.4.5 retrieving revision 1.1.1.6.4.6 diff -u -d -r1.1.1.6.4.5 -r1.1.1.6.4.6 --- update.c 10 Mar 2002 02:37:38 -0000 1.1.1.6.4.5 +++ update.c 25 May 2002 15:58:36 -0000 1.1.1.6.4.6 @@ -39,6 +39,7 @@ #include "md5.h" #endif #include "acl.h" +#include "audit-log.h" #include "watch.h" #include "fileattr.h" #include "edit.h" @@ -601,6 +602,20 @@ if (!grant_file_permission(finfo->repository, vers->tag, finfo->file, branch_perm_checkout, "update")) return 0; + + /* log this action */ + if (!start_audit_log_line("update")) { + error(1, 0, "Out of memory"); + } + append_audit_log_line(finfo->repository + Pserver_Repos_len + 1); + append_audit_log_line(finfo->file); + if (vers->tag == NULL) + append_audit_log_line(""); + else + append_audit_log_line(vers->tag); + append_audit_log_line(vers->vn_rcs); + log_audit_event(); + #endif /* Keep track of whether TAG is a branch tag. |