From 7195b2538fa56122c6afd98e0586ee5288ddc3e8 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH 1/1] Non-canonical fstab lines need newline character after them. - /etc/fstab lines which don't match canonical form (eg. comments) were being written without a trailing \n, resulting in the following line being corrupted. (Reported by Terry Johnson.) --- virt-p2v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virt-p2v b/virt-p2v index ad9e159..755e4a8 100755 --- a/virt-p2v +++ b/virt-p2v @@ -537,7 +537,8 @@ let rewrite_fstab state devices_to_send = fprintf chan "%-23s %-23s %-7s %-15s %s %s\n" dev mountpoint fstype options freq passno | line -> - output_string chan (String.concat " " line) + output_string chan (String.concat " " line); + output_char chan '\n' ) lines; close_out chan ) -- 1.8.3.1