diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2017-02-13T13·06+0200 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2017-02-13T13·14+0200 |
commit | 649a81bcd6445d3b00f400cd6017d184bf0aaa25 (patch) | |
tree | 3587fd70f231fab0bba24cb5ea5a36460b238973 /src/nix-prefetch-url | |
parent | 4724903c78e80481fc63d627081fac6a98e4205d (diff) |
nix-daemon: Don't splice with len=SIZE_MAX
Currently, 'nix-daemon --stdio' is always failing for me, due to the splice call always failing with (on a 32-bit host): splice(0, NULL, 3, NULL, 4294967295, SPLICE_F_MOVE) = -1 EINVAL (Invalid argument) With a bit of ftracing (and luck) the problem seems to be that splice() always fails with EINVAL if the len cast as ssize_t is negative: http://lxr.free-electrons.com/source/fs/read_write.c?v=4.4#L384 So use SSIZE_MAX instead of SIZE_MAX.
Diffstat (limited to 'src/nix-prefetch-url')
0 files changed, 0 insertions, 0 deletions