10000 fix tablespace_map parsing · postgrespro/pg_probackup@ac1e9a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit ac1e9a7

Browse files
committed
fix tablespace_map parsing
1 parent 6e2e78c commit ac1e9a7

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-
char link_name[MAXPGPATH],
1153-
path[MAXPGPATH];
1154-
pgFile *file;
1152+
char link_name[MAXPGPATH];
1153+
char path[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)
0