Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Александр Берсенев" <bay@...>
Subject: proj/autodep:master commit in: src/hook_lib/
Date: Fri, 21 Oct 2011 04:45:20 +0000 (UTC)
commit:     ef3f7139ec86030a64ce4fed4976c0424fbc0637
Author:     Alexander Bersenev <bay <AT> hackerdom <DOT> ru>
AuthorDate: Fri Oct 21 10:45:14 2011 +0000
Commit:     Александр Берсенев <bay <AT> hackerdom <DOT> ru>
CommitDate: Fri Oct 21 10:45:14 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/autodep.git;a=commit;h=ef3f7139

fixed a bug when some application using hooked functions before hook library is initialized

---
 src/hook_lib/file_hook.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/hook_lib/file_hook.c b/src/hook_lib/file_hook.c
index 5630581..728ab4e 100644
--- a/src/hook_lib/file_hook.c
+++ b/src/hook_lib/file_hook.c
@@ -237,6 +237,9 @@ void _fini() {
  * Format of log string: time event filename stage result/err
 */
 static int __raw_log_event(const char *event_type, const char *filename, char *result,int err, char* stage) {
+  if(! is_initialized) // it is essential to initialize hooks because we are 
+	__init_hooks();	   // using _snprintf here
+
   char msg_buff[MAXSOCKETMSGLEN];
   int bytes_to_send;
   if(strcmp(result,"ERR")==0) {


Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
proj/autodep:master commit in: src/hook_lib/
Next by thread:
proj/autodep:master commit in: src/hook_lib/
Previous by date:
gentoo-x86 commit in media-video/cheese: cheese-3.0.2.ebuild ChangeLog
Next by date:
proj/portage:master commit in: pym/repoman/


Updated Jun 26, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.