prelude-correlator/master: Correct invalid variable name.

[email protected] Thu, 18 Jun 2009 15:33:16 +0200 (CEST)
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
commit 5491e0920a4fc71263a7a9c9dd2bf38dd2baceb5
Author: Yoann Vandoorselaere <[email protected]>
Date:   Thu Jun 18 15:21:29 2009 +0200

    Correct invalid variable name.
    
    This prevented prelude-correlator from starting in daemon mode when
    using the '--pidfile' option. Fixes #355.


========================================

 PreludeCorrelator/main.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

========================================

diff --git a/PreludeCorrelator/main.py b/PreludeCorrelator/main.py
index 06112b9..d337a8b 100644
--- a/PreludeCorrelator/main.py
+++ b/PreludeCorrelator/main.py
@@ -155,7 +155,7 @@ def main():
 
             os.close(fd)
             if options.pidfile:
-                open(pidfile, "w").write(str(os.getpid()))
+                open(options.pidfile, "w").write(str(os.getpid()))
 
         env.prelude_client = PreludeClient(env, print_input=ifd, print_output=ofd, dry_run=options.dry_run)
         idmef.set_prelude_client(env.prelude_client)
_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog