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:
2cdd0d6
)
umount: log on all errors
author
Lennart Poettering
<lennart@poettering.net>
Fri, 15 Nov 2019 13:58:06 +0000
(14:58 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 15 Nov 2019 13:58:06 +0000
(14:58 +0100)
src/shutdown/umount.c
patch
|
blob
|
history
diff --git
a/src/shutdown/umount.c
b/src/shutdown/umount.c
index
11be946
..
88dc03e
100644
(file)
--- a/
src/shutdown/umount.c
+++ b/
src/shutdown/umount.c
@@
-206,11
+206,11
@@
int swap_list_get(const char *swaps, MountPoint **head) {
swap = new0(MountPoint, 1);
if (!swap)
- return
-ENOMEM
;
+ return
log_oom()
;
swap->path = strdup(source);
if (!swap->path)
- return
-ENOMEM
;
+ return
log_oom()
;
LIST_PREPEND(mount_point, *head, TAKE_PTR(swap));
}