diff options
author | Bruce Momjian <bruce@momjian.us> | 2011-02-13 00:14:08 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2011-02-13 00:14:47 -0500 |
commit | 8e7af608722a25376d31c40e4bd9916e932bc3ca (patch) | |
tree | 76dd10372f46de94d6b08b2782422113c2740ee6 /src/port/path.c | |
parent | 6c2e734f0a07e57c2837543416f5987ec91d0839 (diff) | |
download | postgresql-8e7af608722a25376d31c40e4bd9916e932bc3ca.tar.gz postgresql-8e7af608722a25376d31c40e4bd9916e932bc3ca.zip |
Fix reverse 'if' test in path_is_relative_and_below_cwd(), per Tom.
Diffstat (limited to 'src/port/path.c')
-rw-r--r-- | src/port/path.c | 2 |
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)) |