diff options
| author | Tom Lane | 2005-08-12 21:07:53 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-08-12 21:07:53 +0000 |
| commit | 0d1ebe0194e79c8a211574f61740c4235a1fc30a (patch) | |
| tree | 82250fea882b1b423ab6059d111a20f4b750afd5 /src/include | |
| parent | 9cc5caea6c61285bd9c9172beaf2fc76c0a5cd71 (diff) | |
Fix up canonicalize_path to do the right thing in all cases (I think ...
this was harder than it seemed at first glance). Also push code for
checking for ".." in file names into path.c where it belongs.
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 95e5531c931..ce261d9f050 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.80 2005/08/02 19:02:32 tgl Exp $ + * $PostgreSQL: pgsql/src/include/port.h,v 1.81 2005/08/12 21:07:52 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -32,6 +32,7 @@ extern void join_path_components(char *ret_path, const char *head, const char *tail); extern void canonicalize_path(char *path); extern void make_native_path(char *path); +extern bool path_contains_parent_reference(const char *path); 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); |
