about summary refs log tree commit diff
path: root/src/libstore/crypto.cc
diff options
context:
space:
mode:
authorTyson Whitehead <twhitehead@gmail.com>2017-10-27T16·15-0400
committerTyson Whitehead <twhitehead@gmail.com>2017-10-30T15·49-0400
commit07d2c6d213660e178fcdf128ea6f1f36d9d8a85d (patch)
treed453d16e0f67945d2ca909be7d2690d6af8e6e61 /src/libstore/crypto.cc
parent12991152be43f63634e48a7d118040e485125df4 (diff)
Fix (highly unlikely) race condition in readLink
Used to determine symlink size with stat and value with readlink.
This could technically result in garbage if symlink changed between
calls.  Also gets around the broken stat implementation in our
network filesystem (returns size + 1 giving a byte of garbage).
Diffstat (limited to 'src/libstore/crypto.cc')
0 files changed, 0 insertions, 0 deletions