Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3d44763

Browse files
committed
Add comment on tilde expansion.
1 parent c1e4869 commit 3d44763

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/psql/common.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.98 2005/05/30 18:28:11 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.99 2005/06/10 14:41:32 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "common.h"
@@ -1317,9 +1317,9 @@ expand_tilde(char **filename)
13171317
*p = '\0';
13181318

13191319
if (*(fn + 1) == '\0')
1320-
get_home_path(home);
1320+
get_home_path(home); /* ~ or ~/ only */
13211321
else if ((pw = getpwnam(fn + 1)) != NULL)
1322-
StrNCpy(home, pw->pw_dir, MAXPGPATH);
1322+
StrNCpy(home, pw->pw_dir, MAXPGPATH); /* ~user */
13231323

13241324
*p = oldp;
13251325
if (strlen(home) != 0)

0 commit comments

Comments
 (0)