From: "Александр Берсенев" <bay@hackerdom.ru>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/autodep:master commit in: src/hook_lib/
Date: Fri, 21 Oct 2011 04:45:20 +0000 (UTC) [thread overview]
Message-ID: <ef3f7139ec86030a64ce4fed4976c0424fbc0637.bay@gentoo> (raw)
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) {
next reply other threads:[~2011-10-21 4:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-21 4:45 Александр Берсенев [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-02-11 20:56 [gentoo-commits] proj/autodep:master commit in: src/hook_lib/ Александр Берсенев
2012-01-31 12:30 Александр Берсенев
2011-09-30 7:21 Александр Берсенев
2011-08-21 18:50 Александр Берсенев
2011-08-16 7:31 Александр Берсенев
2011-08-02 20:19 Александр Берсенев
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ef3f7139ec86030a64ce4fed4976c0424fbc0637.bay@gentoo \
--to=bay@hackerdom.ru \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox