aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-06-10 14:41:32 +0000
committerBruce Momjian <bruce@momjian.us>2005-06-10 14:41:32 +0000
commit3d44763179b787faeac7d68127ef89a3e90a6b45 (patch)
treefa1c8259ac3989e12ecd4643dccb4ea1a84af222 /src
parentc1e48694673c802569e9c668b9f55e4bd4c49ed5 (diff)
downloadpostgresql-3d44763179b787faeac7d68127ef89a3e90a6b45.tar.gz
postgresql-3d44763179b787faeac7d68127ef89a3e90a6b45.zip
Add comment on tilde expansion.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c
index 4000c4ddd8e..a4cefdfc21f 100644
--- a/src/bin/psql/common.c
+++ b/src/bin/psql/common.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.98 2005/05/30 18:28:11 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.99 2005/06/10 14:41:32 momjian Exp $
*/
#include "postgres_fe.h"
#include "common.h"
@@ -1317,9 +1317,9 @@ expand_tilde(char **filename)
*p = '\0';
if (*(fn + 1) == '\0')
- get_home_path(home);
+ get_home_path(home); /* ~ or ~/ only */
else if ((pw = getpwnam(fn + 1)) != NULL)
- StrNCpy(home, pw->pw_dir, MAXPGPATH);
+ StrNCpy(home, pw->pw_dir, MAXPGPATH); /* ~user */
*p = oldp;
if (strlen(home) != 0)