Skip to content

Commit

Permalink
Merge pull request containers#307 from giuseppe/not-override-errno
Browse files Browse the repository at this point in the history
libcomposefs: do not override errno
  • Loading branch information
cgwalters authored Jul 30, 2024
2 parents bb94687 + 502bc27 commit 3a87868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcomposefs/lcfs-writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ int lcfs_write(struct lcfs_ctx_s *ctx, void *_data, size_t data_len)

if (ctx->write_cb) {
while (data_len > 0) {
errno = EIO;
ssize_t r = ctx->write_cb(ctx->file, data, data_len);
if (r <= 0) {
errno = EIO;
return -1;
}
data_len -= r;
Expand Down

0 comments on commit 3a87868

Please sign in to comment.