Bug 1151409
| Summary: | libvirtd breaks if configuration file does not end with \n character | ||
|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Richard W.M. Jones <rjones> |
| Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
| Status: | CLOSED UPSTREAM | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | crobinso, eblake, rbalakri |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-26 19:32:06 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Richard W.M. Jones
2014-10-10 10:32:03 UTC
(In reply to Richard W.M. Jones from comment #0) > Description of problem: > > Try this: > > $ echo -n 'log_level=1' > ~/.config/libvirt/libvirtd.conf You DO know that 'echo -n' is non-portable, and that you should use 'printf' instead, right? > Note that libvirtd fails to start because of a trivial problem > (lack of \n) in the configuration file. POSIX says that a non-empty file lacking a trailing newline is not a text file. Configuration files should be text files. That said, yeah, we should really be more tolerant of this situation. I sent a patch upstream: http://www.redhat.com/archives/libvir-list/2016-April/msg01367.html Fixed upstream:
commit 3cc2a9e0d412776a07780b090cf286cc603cea84
Author: Cole Robinson <crobinso>
Date: Wed Apr 20 20:25:31 2016 -0400
virconf: Handle conf file without ending newline
|