mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
Handle string options with spaces
This commit is contained in:
+4
-1
@@ -280,7 +280,10 @@ do_set_config(void)
|
|||||||
fprintf(fp, "# %s\n", current_group);
|
fprintf(fp, "# %s\n", current_group);
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(fp, "%s = %s\n", opt->lname, value);
|
if (strchr(value, ' '))
|
||||||
|
fprintf(fp, "%s = '%s'\n", opt->lname, value);
|
||||||
|
else
|
||||||
|
fprintf(fp, "%s = %s\n", opt->lname, value);
|
||||||
pfree(value);
|
pfree(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user