diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-01-09 21:12:20 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-01-09 21:12:20 +0000 |
commit | 55a92063a73b60dc7b7b260e3bd8e322acaefe33 (patch) | |
tree | 1f4a49548000a1054f1adc752cc7be610e7e15a2 /src/bin/psql/copy.c | |
parent | 38081fd000a4c203f35e6516ba43d7e88609f940 (diff) |
Allow psql to handle tilde user expansion for file names.
Zach Irmen
Diffstat (limited to 'src/bin/psql/copy.c')
-rw-r--r-- | src/bin/psql/copy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c index 200029b77bd..36937d2606e 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.35 2003/12/01 22:14:40 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.36 2004/01/09 21:12:20 momjian Exp $ */ #include "postgres_fe.h" #include "copy.h" @@ -221,6 +221,7 @@ parse_slash_copy(const char *args) result->file = NULL; else result->file = xstrdup(token); + expand_tilde(&result->file); token = strtokx(NULL, whitespace, NULL, NULL, 0, false, pset.encoding); |