]> Savannah Git Hosting - gnulib.git/commit
af_alg: Fix state of stream after sendfile() succeeds.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Jun 2018 22:41:03 +0000 (00:41 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 25 Jun 2018 00:56:38 +0000 (02:56 +0200)
commitc08a99b5b471b80ad01833a6ca360d3b9cc7e2cb
treec042e4f0fea6c41a89d4d9f4358ce3dc6cbe50cb
parente86c5da600df51198134e0e9641234bcbaeee852
af_alg: Fix state of stream after sendfile() succeeds.

* lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
the stream is correctly positioned afterwards.
* modules/crypto/af_alg (Depends-on): Add fflush.
* tests/test-digest.h (test_digest_on_files): Verify that after the
operation the stream is positioned at end of file.
ChangeLog
lib/af_alg.c
modules/crypto/af_alg
tests/test-digest.h