From 8e7af608722a25376d31c40e4bd9916e932bc3ca Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 13 Feb 2011 00:14:08 -0500 Subject: Fix reverse 'if' test in path_is_relative_and_below_cwd(), per Tom. --- src/port/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) -- cgit v1.2.3