Properly handle Win32 paths of 'E:abc', which can be either absolute or

Bruce Momjian <bruce@momjian.us>

Commit: 0de0cc150af46122238f2fe03605bf14e1a7c276
Author: Bruce Momjian <bruce@momjian.us>
Date: 2011-02-12T14:47:51Z
Releases: 9.1.0
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.

Files

PathChange+/−
contrib/adminpack/adminpack.c modified +19 −21
src/backend/utils/adt/genfile.c modified +19 −20
src/include/port.h modified +2 −7
src/port/path.c modified +33 −0