nspawn: no fake errno

The S_ISREG test does not set errno, so don't use it in the error
message.
This commit is contained in:
Michal Schmidt
2015-11-05 13:44:11 +01:00
parent 4314d33f51
commit 070edd97f3
+1 -1
View 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;
}