diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-07-11 21:34:04 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-07-11 21:34:04 +0000 |
commit | 7b0f060d549524b39e97b4dcacd775f948ff55c6 (patch) | |
tree | 1ee43a2f47eae82e5beb0d15ebaf2e14615f290d /src/bin/psql/copy.c | |
parent | 8801110b20c6bffe4724e7b27de1c5e519af1b04 (diff) |
Use canonicalize_path for -D, GUC paths, and paths coming in from
environment variables.
Diffstat (limited to 'src/bin/psql/copy.c')
-rw-r--r-- | src/bin/psql/copy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c index 54bc7aea684..86c0dde748f 100644 --- a/src/bin/psql/copy.c +++ b/src/bin/psql/copy.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.49 2004/07/11 13:29:15 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.50 2004/07/11 21:34:03 momjian Exp $ */ #include "postgres_fe.h" #include "copy.h" @@ -513,6 +513,8 @@ do_copy(const char *args) appendPQExpBuffer(&query, " FORCE NOT NULL %s", options->force_notnull_list); } + canonicalize_path(options->file); + if (options->from) { if (options->file) |