Re: svn commit: r231300 - head/usr.sbin/pkg_install/create

2012-02-09 Thread Eitan Adler
On Thu, Feb 9, 2012 at 7:26 PM, Andrey Chernov wrote: > On Thu, Feb 09, 2012 at 08:51:03PM +, Eitan Adler wrote: >>      /* Prefix should add an @cwd to the packing list */ >> -    if (Prefix) >> -     add_plist_top(&plist, PLIST_CWD, Prefix); >> +    if (Prefix) { >> +        char resolved_pr

Re: svn commit: r231300 - head/usr.sbin/pkg_install/create

2012-02-09 Thread Andrey Chernov
On Thu, Feb 09, 2012 at 08:51:03PM +, Eitan Adler wrote: > /* Prefix should add an @cwd to the packing list */ > -if (Prefix) > - add_plist_top(&plist, PLIST_CWD, Prefix); > +if (Prefix) { > +char resolved_prefix[PATH_MAX]; > +if (realpath(Prefix, resolved_prefi

Re: svn commit: r231300 - head/usr.sbin/pkg_install/create

2012-02-09 Thread Florian Smeets
On 09.02.12 21:51, Eitan Adler wrote: > Author: eadler > Date: Thu Feb 9 20:51:03 2012 > New Revision: 231300 > URL: http://svn.freebsd.org/changeset/base/231300 > > Log: > Permit the use of relative paths for the prefix argument. > Remove an unnecessary cwd from created plists when -p is spe

svn commit: r231300 - head/usr.sbin/pkg_install/create

2012-02-09 Thread Eitan Adler
Author: eadler Date: Thu Feb 9 20:51:03 2012 New Revision: 231300 URL: http://svn.freebsd.org/changeset/base/231300 Log: Permit the use of relative paths for the prefix argument. Remove an unnecessary cwd from created plists when -p is specified PR: bin/145000 Submitted by: g