scripts/qmp/qom-fuse: Fix getattr(), read() for files in /
commit3a14019e8216eb5f48074d781343317274b8292a
authorMarkus Armbruster <armbru@redhat.com>
Thu, 23 Jul 2020 14:27:38 +0000 (23 16:27 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 3 Sep 2020 07:44:33 +0000 (3 09:44 +0200)
tree98a8425c90c246b3c09bdc8153b7191a43b6f474
parentf713ed4f7eac18dc43d75b08de99196139e56d08
scripts/qmp/qom-fuse: Fix getattr(), read() for files in /

path, prop = "type".rsplit('/', 1) sets path to "", which doesn't
work.  Correct to "/".

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200723142738.1868568-4-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
scripts/qmp/qom-fuse