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

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



Ack.

--
Martin Sivák
msivak redhat com
Red Hat Czech
Anaconda team / Brno, CZ

----- "Ales Kozumplik" <akozumpl redhat com> wrote:

> 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 redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list


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