]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: no fake errno
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 5 Nov 2015 12:44:11 +0000 (13:44 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 5 Nov 2015 12:44:11 +0000 (13:44 +0100)
The S_ISREG test does not set errno, so don't use it in the error
message.

src/nspawn/nspawn.c

index 375906fd1db5dfaa69cfc4545dd5b1675cfe96ff..699a013a9c39c94870730ecdc8753e16d87daebf 100644 (file)
@@ -1662,7 +1662,7 @@ static int setup_image(char **device_path, int *loop_nr) {
         }
 
         if (!S_ISREG(st.st_mode)) {
-                log_error_errno(errno, "%s is not a regular file or block device: %m", arg_image);
+                log_error("%s is not a regular file or block device.", arg_image);
                 return -EINVAL;
         }