1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-07 00:36:50 +03:00

Fix reverse 'if' test in path_is_relative_and_below_cwd(), per Tom.

This commit is contained in:
Bruce Momjian
2011-02-13 00:14:08 -05:00
parent 6c2e734f0a
commit 8e7af60872
3 changed files with 21 additions and 30 deletions

View File

@ -368,7 +368,7 @@ path_contains_parent_reference(const char *path)
bool
path_is_relative_and_below_cwd(const char *path)
{
if (!is_absolute_path(path))
if (is_absolute_path(path))
return false;
/* don't allow anything above the cwd */
else if (path_contains_parent_reference(path))