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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux