projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cba41a
)
makefs: log about OOM condition
author
Lennart Poettering
<lennart@poettering.net>
Mon, 18 May 2020 16:30:18 +0000
(18:30 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 18 May 2020 16:41:56 +0000
(18:41 +0200)
src/partition/makefs.c
patch
|
blob
|
history
diff --git
a/src/partition/makefs.c
b/src/partition/makefs.c
index d73d67c4e8a4d80e457af13794630c84af0e3970..df08a5fea654c2ede00c5671d3eccd82316cdc5b 100644
(file)
--- a/
src/partition/makefs.c
+++ b/
src/partition/makefs.c
@@
-54,11
+54,11
@@
static int run(int argc, char *argv[]) {
/* type and device must be copied because makefs calls safe_fork, which clears argv[] */
type = strdup(argv[1]);
if (!type)
- return
-ENOMEM
;
+ return
log_oom()
;
device = strdup(argv[2]);
if (!device)
- return
-ENOMEM
;
+ return
log_oom()
;
if (stat(device, &st) < 0)
return log_error_errno(errno, "Failed to stat \"%s\": %m", device);