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

Lines changed: 3 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy