[Cvs-nserver-commits] CVS: cvs-nserver/src audit-log.c,1.1.2.5,1.1.2.6 audit-log.h,1.1.2.3,1.1.2.4
Brought to you by:
tyranny
From: Alexey M. <ty...@us...> - 2002-05-29 05:07:23
|
Update of /cvsroot/cvs-nserver/cvs-nserver/src In directory usw-pr-cvs1:/tmp/cvs-serv19337 Modified Files: Tag: NCLI-1-11-1 audit-log.c audit-log.h Log Message: Audit logging could be inactive; allow clients to learn that Index: audit-log.c =================================================================== RCS file: /cvsroot/cvs-nserver/cvs-nserver/src/Attic/audit-log.c,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -u -d -r1.1.2.5 -r1.1.2.6 --- audit-log.c 25 May 2002 20:48:05 -0000 1.1.2.5 +++ audit-log.c 29 May 2002 05:07:21 -0000 1.1.2.6 @@ -33,6 +33,7 @@ #include "stringbuf.h" static int fd[2]; +static int audit_log_is_active = 0; static struct stringbuf* audit_log_line = NULL; @@ -56,6 +57,8 @@ /* parent */ close(fd[0]); + audit_log_is_active = 1; + } else { /* child */ char* lh_copy; @@ -113,6 +116,13 @@ write(fd[1], cr, strlen(cr)); return 1; +} + + +int +audit_log_active (void) +{ + return audit_log_is_active; } Index: audit-log.h =================================================================== RCS file: /cvsroot/cvs-nserver/cvs-nserver/src/Attic/audit-log.h,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -d -r1.1.2.3 -r1.1.2.4 --- audit-log.h 25 May 2002 20:49:12 -0000 1.1.2.3 +++ audit-log.h 29 May 2002 05:07:21 -0000 1.1.2.4 @@ -20,6 +20,8 @@ int start_logging_helper (const char* logging_helper); +int audit_log_active (void); + int log_audit_event (void); char* get_client_ip_address (void); |