summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-01-06 19:50:25 +0100
committerTom Gundersen <teg@jklm.no>2015-01-08 17:09:45 +0100
commit080e78329a742dd95bdee321fee81c305e073491 (patch)
tree468ad994256e371b92f9d5fdeeaa952ee4972189 /src
parenta0539d7753d6a3ede87bf5e57d7c40d5bc1dc230 (diff)
nspawn: fix error message when mknod fails
Diffstat (limited to 'src')
-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 89bbf2b82c..e5a24dda70 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -1291,7 +1291,7 @@ static int copy_devnodes(const char *dest) {
}
if (mknod(to, st.st_mode, st.st_rdev) < 0)
- return log_error_errno(errno, "mknod(%s) failed: %m", dest);
+ return log_error_errno(errno, "mknod(%s) failed: %m", to);
}
}