libvirt/tests/confdata
Cole Robinson ca9180ad63 virconf: Handle conf file without ending newline
$ echo -n 'log_level=1' > ~/.config/libvirt/libvirtd.conf
$ libvirtd --timeout=10
2014-10-10 10:30:56.394+0000: 6626: info : libvirt version: 1.1.3.6, package: 1.fc20 (Fedora Project, 2014-09-08-17:50:42, buildvm-05.phx2.fedoraproject.org)
2014-10-10 10:30:56.394+0000: 6626: error : main:1261 : Can't load config file: configuration file syntax error: /home/rjones/.config/libvirt/libvirtd.conf:1: expecting a value: /home/rjones/.config/libvirt/libvirtd.conf

Rather than try to fix this in the depths of the parser, just catch
the case when a config file doesn't end in a newline, and manually
append a newline to the content before parsing

https://bugzilla.redhat.com/show_bug.cgi?id=1151409
(cherry picked from commit 3cc2a9e0d4)
2016-05-04 18:45:50 -04:00
..
fc4.conf Allow trailing ',' in lists, and '_' in names 2006-09-03 17:46:32 +00:00
fc4.out Allow trailing ',' in lists, and '_' in names 2006-09-03 17:46:32 +00:00
libvirtd.conf Add configuration options for permissions on daemon's admin socket 2015-06-16 13:46:21 +02:00
libvirtd.out Add configuration options for permissions on daemon's admin socket 2015-06-16 13:46:21 +02:00
no-newline.conf virconf: Handle conf file without ending newline 2016-05-04 18:45:50 -04:00
no-newline.out virconf: Handle conf file without ending newline 2016-05-04 18:45:50 -04:00