Empty include directories were already not treated as failures.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89280
Signed-off-by: Dimitri John Ledkov <dimitri.j.ledkov@intel.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dir = _dbus_directory_open (dirname, error);
if (dir == NULL)
- goto failed;
+ {
+ if (dbus_error_has_name (error, DBUS_ERROR_FILE_NOT_FOUND))
+ {
+ dbus_error_free (error);
+ goto success;
+ }
+ }
dbus_error_init (&tmp_error);
while (_dbus_directory_get_next_file (dir, &filename, &tmp_error))
goto failed;
}
+ success:
retval = TRUE;
failed: