From: Michal Schmidt Date: Thu, 5 Nov 2015 12:44:11 +0000 (+0100) Subject: nspawn: no fake errno X-Git-Tag: v228~79^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=070edd97f397c90015c9ecad33ab9bf50d84ceb4;p=thirdparty%2Fsystemd.git nspawn: no fake errno The S_ISREG test does not set errno, so don't use it in the error message. --- diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 375906fd1db..699a013a9c3 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -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; }