Re: [PATCH] Support default path for importing openvpn configuration file



On Fri, 2008-10-24 at 11:36 +0300, Tambet Ingo wrote:
> On Fri, Oct 24, 2008 at 7:13 AM, Bin Li <libin charles gmail com> wrote:
> > Generally the openvpn configuration file set the ca, cert and key file
> > without the absolute path, and
> > the openvpn could find these file in the same path of the
> > configuration file. Just run this:
> >
> > # openvpn --config Client-config.ovpn
> >
> > openvpn works fine. Client-config.ovpn, ca.crt client.crt and
> > client.key in the same directory.
> >
> > And when I import the openvpn configuration file, the
> > nm-connection-editor couldn't set the ca, cert and key file.
> >
> > This patch will works for it.
> 
> It leaks 'default_path' variable in do_import(). I'd also use
> g_build_filename() in handle_path_item() in case the path isn't
> absolute.

Yeah, other than that, looks good though.  If you could post it again
when this is cleaned up, then we can commit.

Thanks!
Dan




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