diff options
| author | Tom Lane | 2005-08-29 19:39:39 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-08-29 19:39:39 +0000 |
| commit | 8aec77fb9fbbe78bfb72b6003f9b54d3cadeccd1 (patch) | |
| tree | 69438747097c55b026e126f11144b90b8c278182 /src/include | |
| parent | 6b44d796c7e10337537a1fa7591bb5e89d900152 (diff) | |
Fix platform-specific test for path prefix-ness: move it into path.c where
it can be done right. Allow explicit use of absolute DataDir path.
Per Dave Page.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/port.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/port.h b/src/include/port.h index ce261d9f050..7172ce5fb53 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/port.h,v 1.81 2005/08/12 21:07:52 tgl Exp $ + * $PostgreSQL: pgsql/src/include/port.h,v 1.82 2005/08/29 19:39:39 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -33,6 +33,7 @@ extern void join_path_components(char *ret_path, extern void canonicalize_path(char *path); extern void make_native_path(char *path); extern bool path_contains_parent_reference(const char *path); +extern bool path_is_prefix_of_path(const char *path1, const char *path2); extern const char *get_progname(const char *argv0); extern void get_share_path(const char *my_exec_path, char *ret_path); extern void get_etc_path(const char *my_exec_path, char *ret_path); |
