Skip to contentSkip to conversation

master - format_text: Fix creation_host_system_id.

PATCH Alasdair Kergon 1 participant 1 message Feb 23, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a5df78e0f045e374f44be2fad3c09d44d39314f7
Commit:        a5df78e0f045e374f44be2fad3c09d44d39314f7
Parent:        cc5e3dbf24f69df8f7410919df3a9f11988cee54
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Mon Feb 23 19:19:48 2015 +0000
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Mon Feb 23 19:19:48 2015 +0000

format_text: Fix creation_host_system_id.

Don't escape quotes - forbidden characters.

---
 lib/format_text/export.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/format_text/export.c +1 -1
index d853bb5..d6a92c4 100644
@@ -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;