Skip to content
Snippets Groups Projects
Commit 8b88d25c authored by aszlig's avatar aszlig Committed by Eelco Dolstra
Browse files

libutil: Limit readLink() error to only overflows.


Let's not just improve the error message itself, but also the behaviour
to actually work around the ntfs-3g symlink bug. If the readlink() call
returns a smaller size than the stat() call, this really isn't a problem
even if the symlink target really has changed between the calls.

So if stat() reports the size for the absolute path, it's most likely
that the relative path is smaller and thus it should also work for file
system bugs as mentioned in 93002d69fc58c2b71e2dfad202139230c630c53a.

Signed-off-by: default avataraszlig <aszlig@redmoonstudios.org>
Tested-by: default avatarJohn Ericson <Ericson2314@Yahoo.com>
parent bbd45ac8
No related branches found
No related tags found
No related merge requests found
Loading
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