projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
070edd9
)
nspawn: save errno before reopening log after exec failure
author
Michal Schmidt
<mschmidt@redhat.com>
Thu, 5 Nov 2015 12:44:12 +0000
(13:44 +0100)
committer
Michal Schmidt
<mschmidt@redhat.com>
Thu, 5 Nov 2015 12:44:12 +0000
(13:44 +0100)
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index
699a013
..
0a8ea84
100644
(file)
--- a/
src/nspawn/nspawn.c
+++ b/
src/nspawn/nspawn.c
@@
-2585,8
+2585,9
@@
static int inner_child(
execle("/bin/sh", "-sh", NULL, env_use);
}
+ r = -errno;
(void) log_open();
- return log_error_errno(
errno
, "execv() failed: %m");
+ return log_error_errno(
r
, "execv() failed: %m");
}
static int outer_child(