Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3d44763

Browse files
committed
Add comment on tilde expansion.
1 parentc1e4869 commit3d44763

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
elseif ((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)

[8]ページ先頭

©2009-2025 Movatter.jp