From 0fad70221cbeca03bfc650462a1cd6f18e693611 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 1 Jan 2026 13:59:02 +0000 Subject: Prepare for 0.1.8.1; save/restore errno in safe wrappers --- COPYING | 2 +- INSTALL | 4 ++-- doc/index.html | 8 ++++---- doc/upgrade.html | 9 +++++++++ package/info | 2 +- src/mdevd/mdevd_uevent_read.c | 4 +++- 6 files changed, 20 insertions(+), 9 deletions(-) diff --git a/COPYING b/COPYING index 4daf8f5..609eab6 100644 --- a/COPYING +++ b/COPYING @@ -1,4 +1,4 @@ -Copyright (c) 2017-2025 Laurent Bercot +Copyright (c) 2017-2026 Laurent Bercot Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/INSTALL b/INSTALL index 472b4cd..a677916 100644 --- a/INSTALL +++ b/INSTALL @@ -6,9 +6,9 @@ Build Instructions - A Linux-based system with a standard C development environment - GNU make version 3.81 or later - - skalibs version 2.14.5.0 or later: https://skarnet.org/software/skalibs/ + - skalibs version 2.14.5.1 or later: https://skarnet.org/software/skalibs/ - optional: nsss version 0.2.1.1 or later: https://skarnet.org/software/nsss/ - - optional: execline version 2.9.8.0 or later: https://skarnet.org/software/execline/ + - optional: execline version 2.9.8.1 or later: https://skarnet.org/software/execline/ This software is Linux-specific. It will run on a Linux kernel, version 2.6.10 or later. diff --git a/doc/index.html b/doc/index.html index e10333b..2df511e 100644 --- a/doc/index.html +++ b/doc/index.html @@ -102,7 +102,7 @@ and does not pull in any unnecessary code. The Linux kernel must be 2.6.10 or later.
  • GNU make, version 3.81 or later
  • skalibs version -2.14.5.0 or later. It's a build-time requirement. It's also a run-time +2.14.5.1 or later. It's a build-time requirement. It's also a run-time requirement if you link against the shared version of the skalibs library.
  • Optionally: nsss @@ -111,7 +111,7 @@ you use the --enable-nsss option to configure; but you would only do that if you're replacing nsswitch on your whole system, and most people are not.
  • Optionally: execline -version 2.9.8.0 or later. It's a only a run-time requirement, and only +version 2.9.8.1 or later. It's a only a run-time requirement, and only if your mdev.conf file contains +, - or & command directives.
  • @@ -127,8 +127,8 @@ if your mdev.conf file contains +, - or
    • The current released version of mdevd is -0.1.8.0. -You can access its checksum here.
    • +0.1.8.1. +You can access its checksum here.
    • Alternatively, you can checkout a copy of the mdevd git repository: diff --git a/doc/upgrade.html b/doc/upgrade.html index 2bead5b..d344a52 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -18,6 +18,15 @@

      What has changed in mdevd

      +

      in 0.1.8.1

      + +
        +
      • skalibs +dependency bumped to 2.14.5.1.
      • +
      • execline +optional dependency bumped to 2.9.8.1.
      • +
      +

      in 0.1.8.0

        diff --git a/package/info b/package/info index e621f16..245910e 100644 --- a/package/info +++ b/package/info @@ -1,4 +1,4 @@ package=mdevd -version=0.1.8.0 +version=0.1.8.1 category=admin package_macro_name=MDEVD diff --git a/src/mdevd/mdevd_uevent_read.c b/src/mdevd/mdevd_uevent_read.c index 38be5ea..9a395dc 100644 --- a/src/mdevd/mdevd_uevent_read.c +++ b/src/mdevd/mdevd_uevent_read.c @@ -18,9 +18,11 @@ static inline ssize_t fd_recvmsg (int fd, struct msghdr *hdr) { + int e = errno ; ssize_t r ; do r = recvmsg(fd, hdr, 0) ; - while ((r == -1) && (errno == EINTR)) ; + while (r == -1 && errno == EINTR) ; + if (r >= 0) errno = e ; return r ; } -- cgit v1.3.1