lix/src
aszlig bbd45ac80f libutil: Improve errmsg on readLink size mismatch.
A message like "error: reading symbolic link `...' : Success" really is
quite confusing, so let's not indicate "success" but rather point out
the real issue.

We could also limit the check of this to just check for non-negative
values, but this would introduce a race condition between stat() and
readlink() if the link target changes between those two calls, thus
leading to a buffer overflow vulnerability.

Reported by @Ericson2314 on IRC. Happened due to a possible ntfs-3g bug
where a relative symlink returned the absolute path (st_)size in stat()
while readlink() returned the relative size.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Tested-by: John Ericson <Ericson2314@Yahoo.com>
2015-01-02 12:53:42 +01:00
..
boost boost::shared_ptr -> std::shared_ptr 2014-03-30 00:49:23 +01:00
bsdiff-4.3 Fix "make dist" 2014-02-01 14:38:12 +01:00
download-via-ssh Pedantry 2014-12-14 01:51:14 +01:00
libexpr Pedantry 2014-12-14 01:51:14 +01:00
libmain Pedantry 2014-12-14 01:51:14 +01:00
libstore LocalStore initialization: Don't die if build-users-group doesn't exist 2014-12-29 14:40:13 +01:00
libutil libutil: Improve errmsg on readLink size mismatch. 2015-01-02 12:53:42 +01:00
nix-daemon Silence some warnings on GCC 4.9 2014-12-12 17:14:28 +01:00
nix-env Add --force-name support for --set in nix-env, to support nix-install-package --set 2014-09-23 15:11:24 +02:00
nix-hash Use proper quotes everywhere 2014-08-20 18:03:48 +02:00
nix-instantiate Remove canary stuff 2014-12-12 10:59:50 +01:00
nix-log2xml nix-log2xml: Handle newlines 2014-08-13 19:06:20 +02:00
nix-store Ensure we're writing to stderr in the builder 2014-12-12 14:35:44 +01:00