]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/version: strip trailing newline from vendor release file 68111/head
authorNaveen Naidu <naveennaidu479@gmail.com>
Mon, 30 Mar 2026 16:18:49 +0000 (21:48 +0530)
committerNaveen Naidu <naveennaidu479@gmail.com>
Mon, 30 Mar 2026 16:28:51 +0000 (21:58 +0530)
commit5022557a0f23e131731224b11b466a79eb1042c0
tree96a58b55dcc9307e34f50eb1837d193691c630f7
parentee74d4780d505e13a596d09c5a7be8244d8bb97d
common/version: strip trailing newline from vendor release file

read_vendor_release_file() reads /etc/ceph_version which may have a
trailing newline, causing "ceph version" to produce invalid JSON output.
Strip trailing \n and \r characters before returning the content.

Signed-off-by: Naveen Naidu <naveen.naidu@ibm.com>
src/common/version.cc