diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-06-22 16:48:48 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-06-23 09:38:12 +0200 |
commit | a73c74db66a14540eb043bf9535c0d9c37804062 (patch) | |
tree | 6181bebb3af2ad811df67130c0089ef390d4e906 /src/basic/io-util.c | |
parent | tpm2-util: look for tpm2-pcr-signature.json directly in /.extra/ (diff) | |
download | systemd-a73c74db66a14540eb043bf9535c0d9c37804062.tar.xz systemd-a73c74db66a14540eb043bf9535c0d9c37804062.zip |
coredump: use loop_read() for reading coredump into memory
Fixes: #26748
Diffstat (limited to 'src/basic/io-util.c')
-rw-r--r-- | src/basic/io-util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/basic/io-util.c b/src/basic/io-util.c index 6f6fb8068c..bf1aab9e38 100644 --- a/src/basic/io-util.c +++ b/src/basic/io-util.c @@ -54,8 +54,7 @@ ssize_t loop_read(int fd, void *buf, size_t nbytes, bool do_poll) { assert(fd >= 0); - /* If called with nbytes == 0, let's call read() at least - * once, to validate the operation */ + /* If called with nbytes == 0, let's call read() at least once, to validate the operation */ if (nbytes > (size_t) SSIZE_MAX) return -EINVAL; |