bus: Show the errno if inotify cannot be initialized

Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit 25e22b2540)
Backported-from: dbus!235
This commit is contained in:
Simon McVittie 2021-12-10 13:09:15 +00:00
parent 73240b300e
commit 052a2bead8

View file

@ -236,7 +236,7 @@ _init_inotify (BusContext *context)
#endif
if (inotify_fd < 0)
{
_dbus_warn ("Cannot initialize inotify");
_dbus_warn ("Cannot initialize inotify: %s", _dbus_strerror (errno));
goto out;
}