git.annexia.org
/
virt-p2v.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bcc3e2
)
Non-canonical fstab lines need newline character after them.
author
Richard W.M. Jones
<rjones@redhat.com>
Sat, 9 Feb 2008 13:32:19 +0000
(13:32 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Sat, 9 Feb 2008 13:32:19 +0000
(13:32 +0000)
- /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
patch
|
blob
|
history
diff --git
a/virt-p2v
b/virt-p2v
index
ad9e159
..
755e4a8
100755
(executable)
--- 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
)