From: Timo Sirainen Date: Wed, 3 Jun 2026 15:04:42 +0000 (+0300) Subject: [PATCH 1/5] lib: i_close_fd*() - Document that it preserves errno X-Git-Tag: archive/raspbian/1%2.4.1+dfsg1-6+rpi1+deb13u7^2~100 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c296f51dd9a0e2fcb8d6aa1443b18c7de8eca1a0;p=dovecot.git [PATCH 1/5] lib: i_close_fd*() - Document that it preserves errno Gbp-Pq: Name 0001-lib-i_close_fd-Document-that-it-preserves-errno.patch --- diff --git a/src/lib/fd-util.h b/src/lib/fd-util.h index 54bdd63..3f46892 100644 --- a/src/lib/fd-util.h +++ b/src/lib/fd-util.h @@ -17,7 +17,7 @@ void fd_close_maybe_stdio(int *fd_in, int *fd_out); /* Close the fd and set it to -1. This assert-crashes if fd == 0, and is a no-op if fd == -1. Normally fd == 0 would happen only if an uninitialized - fd is attempted to be closed, which is a bug. */ + fd is attempted to be closed, which is a bug. Preserves original errno. */ void i_close_fd_path(int *fd, const char *path, const char *arg, const char *func, const char *file, int line); #define i_close_fd_path(fd, path) i_close_fd_path((fd), (path), #fd, __func__, __FILE__, __LINE__)