]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
random-seed: add missing %m in error message
authorLennart Poettering <lennart@poettering.net>
Mon, 31 Jan 2022 16:58:42 +0000 (17:58 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 31 Jan 2022 21:07:13 +0000 (21:07 +0000)
src/random-seed/random-seed.c

index 867d55169d7344aa801381cef00dfeafbbef5420..b265b7f85cdbe98cf559c6963d13cd6de0c70155 100644 (file)
@@ -263,7 +263,7 @@ static int run(int argc, char *argv[]) {
                  * ourselves the mode and owner should be correct anyway. */
                 r = fchmod_and_chown(seed_fd, 0600, 0, 0);
                 if (r < 0)
-                        return log_error_errno(r, "Failed to adjust seed file ownership and access mode.");
+                        return log_error_errno(r, "Failed to adjust seed file ownership and access mode: %m");
 
                 /* Let's make this whole job asynchronous, i.e. let's make ourselves a barrier for
                  * proper initialization of the random pool. */