]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: add trailing newline before parsing cfg 33750/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 18 Nov 2020 13:17:18 +0000 (13:17 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 18 Nov 2020 13:35:41 +0000 (13:35 +0000)
commitfbed349232650f1a739acf2317a35ee06e89e1d2
treedb20d8b98df648c82a5bb164b72587c03e488a35
parent6ebd3d7b6f9a0c8c0d3377f38f96533fe537343c
common: add trailing newline before parsing cfg

Ceph fails to parse config files that lack a trailing newline.
This mainly affects Windows, where text editors won't add one by
default.

This issue has been addressed by a previous commit [1] but that
code path is no longer reached [2][3], so we need to go down a level.

[1] 3b590314ac49b955b2123f03f4c4417e5534ec98
[2] http://paste.openstack.org/raw/800153/
[3] https://github.com/ceph/ceph/commit/e7dcc403b20922ffeeca114899f90a385bf25f0e

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/common/ConfUtils.cc