gio cannot handle files in directories with strlen(realpath(..)) > PATH_MAX
Submitted by Phillip Berndt
Link to original bug (#778798)
Description
Created attachment 346024 Example code which should not fail
gio fails to do IO on files whose absolute path is longer than PATH_MAX. By this I do not mean that returning the absolute path fails. If you are in a directory that happens to have a long name and create a GFile on "./foo", then reading from this file fails. This should not happen and is a bug. All other tools I have at hand manage to handle this situation.
I'll attach example code that fails with
Error opening file: File name too long: File name too long
even though all it attempts to do is to g_file_read() on g_file_new_for_commandline_arg("my-file").
Attachment 346024, "Example code which should not fail":
test.c