lix/src/libutil
aszlig 8b88d25cda 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: aszlig <aszlig@redmoonstudios.org>
Tested-by: John Ericson <Ericson2314@Yahoo.com>
2015-01-02 12:53:42 +01:00
..
affinity.cc Don't apply the CPU affinity hack to nix-shell (and other Perl programs) 2013-09-06 16:36:56 +02:00
affinity.hh Run the daemon worker on the same CPU as the client 2013-08-07 14:02:04 +02:00
archive.cc Use proper quotes everywhere 2014-08-20 18:03:48 +02:00
archive.hh Handle case collisions on case-insensitive systems 2014-07-16 16:02:05 +02:00
hash.cc Use proper quotes everywhere 2014-08-20 18:03:48 +02:00
hash.hh If hashes do not match, print them in base-32 for SHA-1/SHA-256 2012-10-23 18:05:50 +02:00
local.mk Update Makefile variable names 2014-02-01 13:54:38 +01:00
md5.c * Optional switch "--with-openssl=<PATH>" to use OpenSSL's 2006-02-13 19:52:43 +00:00
md5.h * Some Cygwin fixes. 2006-05-24 13:23:20 +00:00
md32_common.h * Add SHA-256. 2005-01-14 12:03:04 +00:00
monitor-fd.hh Pedantry 2014-12-14 01:51:14 +01:00
regex.cc Add a primop for regular expression pattern matching 2014-11-25 11:47:06 +01:00
regex.hh Add a primop for regular expression pattern matching 2014-11-25 11:47:06 +01:00
serialise.cc Print a warning when loading a large path into memory 2014-06-10 13:30:09 +02:00
serialise.hh Don't use member initialisers 2014-06-12 17:30:37 +02:00
sha1.c * Optional switch "--with-openssl=<PATH>" to use OpenSSL's 2006-02-13 19:52:43 +00:00
sha1.h * Optional switch "--with-openssl=<PATH>" to use OpenSSL's 2006-02-13 19:52:43 +00:00
sha256.c * Add SHA-256. 2005-01-14 12:03:04 +00:00
sha256.h * FreeBSD 4.x doesn't have stdint.h, use inttypes.h instead (which is 2005-05-04 16:32:54 +00:00
types.hh Revert "Use posix_spawn to run the pager" 2014-12-10 13:48:50 +01:00
util.cc libutil: Limit readLink() error to only overflows. 2015-01-02 12:53:42 +01:00
util.hh Fix some memory leaks 2014-12-12 15:01:16 +01:00
xml-writer.cc And another one 2014-02-26 18:55:18 +01:00
xml-writer.hh And another one 2014-02-26 18:55:18 +01:00