Tom Lane wrote:
> Bruce Momjian <br...@momjian.us> writes:
> > Properly handle Win32 paths of 'E:abc', which can be either absolute or
> > relative, by creating a function path_is_relative_and_below_cwd() to
> > check for specific requirements.  It is unclear if this fixes a security
> > problem or not but the new code is more robust.
> 
> Surely this test is backwards?
> 
> +bool
> +path_is_relative_and_below_cwd(const char *path)
> +{
> +   if (!is_absolute_path(path))
> +       return false;

Yes, sorry, corrected.

-- 
  Bruce Momjian  <br...@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Reply via email to