Skip to content

glocalvfs: Create a dummy file for g_file_new_for_path("")

"" is not a valid path (stat() on it returns ENOENT). Previously, a full GLocalFile was being created, which ended up resolving to $CWD, through path canonicalisation. That isn’t right.

Fix it by creating a GDummyFile instead, and adding a unit test.

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Fixes: #2328 (closed)

Merge request reports