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:
8d4aa2b
)
nspawn: use -ENOMEM instead of log_oom() in one case
author
Lennart Poettering
<lennart@poettering.net>
Tue, 29 Nov 2016 22:47:24 +0000
(23:47 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 30 Nov 2016 23:25:51 +0000
(
00:25
+0100)
The function is of the "library" kind and doesn't log ENOMEM in all other
cases, hence fix the one outlier.
src/nspawn/nspawn-mount.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn-mount.c
b/src/nspawn/nspawn-mount.c
index
a9f5ad8
..
f8a79ec
100644
(file)
--- a/
src/nspawn/nspawn-mount.c
+++ b/
src/nspawn/nspawn-mount.c
@@
-132,7
+132,7
@@
int bind_mount_parse(CustomMount **l, unsigned *n, const char *s, bool read_only
m = custom_mount_add(l, n, CUSTOM_MOUNT_BIND);
if (!m)
- return
log_oom()
;
+ return
-ENOMEM
;
m->source = source;
m->destination = destination;