Merge pull request #1820 from michich/errno-v2
[v2] treewide: treatment of errno and other cleanups
This commit is contained in:
@@ -150,8 +150,7 @@ int manager_enumerate_machines(Manager *m) {
|
||||
if (errno == ENOENT)
|
||||
return 0;
|
||||
|
||||
log_error_errno(errno, "Failed to open /run/systemd/machines: %m");
|
||||
return -errno;
|
||||
return log_error_errno(errno, "Failed to open /run/systemd/machines: %m");
|
||||
}
|
||||
|
||||
FOREACH_DIRENT(de, d, return -errno) {
|
||||
|
||||
Reference in New Issue
Block a user