summaryrefslogtreecommitdiff
path: root/src/nspawn/nspawn.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2015-11-05 13:44:11 +0100
committerMichal Schmidt <mschmidt@redhat.com>2015-11-05 13:44:11 +0100
commit070edd97f397c90015c9ecad33ab9bf50d84ceb4 (patch)
tree09a449fd8eede6759a3723ca6313470f957c5fdf /src/nspawn/nspawn.c
parent4314d33f514212f1f353c80cda4d4f0b845e082e (diff)
nspawn: no fake errno
The S_ISREG test does not set errno, so don't use it in the error message.
Diffstat (limited to 'src/nspawn/nspawn.c')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 375906fd1d..699a013a9c 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;
}