We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1e4869 commit 3d44763Copy full SHA for 3d44763
src/bin/psql/common.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
5
6
- * $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 $
7
*/
8
#include "postgres_fe.h"
9
#include "common.h"
@@ -1317,9 +1317,9 @@ expand_tilde(char **filename)
1317
*p = '\0';
1318
1319
if (*(fn + 1) == '\0')
1320
- get_home_path(home);
+ get_home_path(home); /* ~ or ~/ only */
1321
else if ((pw = getpwnam(fn + 1)) != NULL)
1322
- StrNCpy(home, pw->pw_dir, MAXPGPATH);
+ StrNCpy(home, pw->pw_dir, MAXPGPATH); /* ~user */
1323
1324
*p = oldp;
1325
if (strlen(home) != 0)
0 commit comments