aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2011-02-13 00:14:08 -0500
committerBruce Momjian <bruce@momjian.us>2011-02-13 00:14:47 -0500
commit8e7af608722a25376d31c40e4bd9916e932bc3ca (patch)
tree76dd10372f46de94d6b08b2782422113c2740ee6 /src
parent6c2e734f0a07e57c2837543416f5987ec91d0839 (diff)
downloadpostgresql-8e7af608722a25376d31c40e4bd9916e932bc3ca.tar.gz
postgresql-8e7af608722a25376d31c40e4bd9916e932bc3ca.zip
Fix reverse 'if' test in path_is_relative_and_below_cwd(), per Tom.
Diffstat (limited to 'src')
-rw-r--r--src/port/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/port/path.c b/src/port/path.c
index e01c7b8c0e5..df2c4e7be6d 100644
--- a/src/port/path.c
+++ b/src/port/path.c
@@ -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))