diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-08-12 18:32:52 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-08-12 18:32:52 +0000 |
commit | 6525b42b10c4e05fade5dfd147b59ed14073b0e6 (patch) | |
tree | 98b1371bd51f87f4fb33b88f2194c556335965f1 /src/include | |
parent | e48322a6d6cfce1ec52ab303441df329ddbc04d1 (diff) |
Add make_native_path() because Win32 COPY is an internal CMD.EXE command
and doesn't process forward slashes in the same way as external
commands. Quoting the first argument to COPY does not convert forward
to backward slashes, but COPY does properly process quoted forward
slashes in the second argument.
Win32 COPY works with quoted forward slashes in the first argument only if the
current directory is the same as the directory of the first argument.
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 013243cc279..2091b8ec349 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/port.h,v 1.51 2004/08/09 02:12:51 momjian Exp $ + * $PostgreSQL: pgsql/src/include/port.h,v 1.52 2004/08/12 18:32:43 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -39,6 +39,7 @@ extern char *last_dir_separator(const char *filename); extern char *first_path_separator(const char *filename); extern void canonicalize_path(char *path); +extern void make_native_path(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); |