Skip to content
Snippets Groups Projects
Commit af4c1d7c authored by Simon McVittie's avatar Simon McVittie
Browse files

resolve-in-sysroot: Correctly bail out if a non-directory is found


Previously, this would have incorrectly returned success with the
error set, breaking the usual GError invariants.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 70fed324
No related branches found
No related tags found
Loading
......@@ -292,6 +292,7 @@ _srt_resolve_in_sysroot (int sysroot,
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_DIRECTORY,
"\"%s/%s\" is not a directory",
current_path->str, next);
return -1;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment