[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[master 5/5] scripts/analog: normalize paths before generating the config.



because rsyslogd doesn't get relative paths.
---
 scripts/analog |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/analog b/scripts/analog
index 16fcac2..7f2ba02 100755
--- a/scripts/analog
+++ b/scripts/analog
@@ -153,6 +153,8 @@ if __name__ == "__main__":
         exc.parser.error(str(exc))
         sys.exit(1)
     directory = os.path.join(os.getcwd(), options.log_root)
+    directory = os.path.abspath(directory)
+    options.output = os.path.abspath(options.output)
     config = generate_rsyslog_config(options.port, directory)
     if options.output:
         with open(options.output, 'w') as file:
-- 
1.6.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]