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

Commitac1e9a7

Browse files
committed
fix tablespace_map parsing
1 parent6e2e78c commitac1e9a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/dir.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,11 +1149,11 @@ read_tablespace_map(parray *links, const char *backup_dir)
11491149

11501150
while (fgets(buf,lengthof(buf),fp))
11511151
{
1152-
charlink_name[MAXPGPATH],
1153-
path[MAXPGPATH];
1154-
pgFile*file;
1152+
charlink_name[MAXPGPATH];
1153+
charpath[MAXPGPATH];
1154+
pgFile*file;
11551155

1156-
if (sscanf(buf,"%s %n",link_name,path)!=2)
1156+
if (sscanf(buf,"%s %s",link_name,path)!=2)
11571157
elog(ERROR,"invalid format found in \"%s\"",map_path);
11581158

11591159
file=pgut_new(pgFile);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp