aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/optimise-store.cc
diff options
context:
space:
mode:
authorTyson Whitehead <twhitehead@gmail.com>2017-10-27 12:15:31 -0400
committerTyson Whitehead <twhitehead@gmail.com>2017-10-30 11:49:55 -0400
commit07d2c6d213660e178fcdf128ea6f1f36d9d8a85d (patch)
treed453d16e0f67945d2ca909be7d2690d6af8e6e61 /src/libstore/optimise-store.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/optimise-store.cc')
0 files changed, 0 insertions, 0 deletions