1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

format_text: Fix creation_host_system_id.

Don't escape quotes - forbidden characters.
This commit is contained in:
Alasdair G Kergon 2015-02-23 19:19:48 +00:00
parent cc5e3dbf24
commit a5df78e0f0

View File

@ -352,7 +352,7 @@ static int _print_header(struct cmd_context *cmd, struct formatter *f,
_utsname.sysname, _utsname.nodename, _utsname.release,
_utsname.version, _utsname.machine);
if (cmd->system_id && *cmd->system_id)
outf(f, "creation_host_system_id = \"%s\"", dm_escape_double_quotes(buf, cmd->system_id));
outf(f, "creation_host_system_id = \"%s\"", cmd->system_id);
outf(f, "creation_time = %lu\t# %s", t, ctime(&t));
return 1;