summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d76702a)
https://bugs.freedesktop.org/show_bug.cgi?id=39957
- if (!(d = opendir(path))) {
+ d = opendir(path);
+ if (!d) {
if (errno == ENOENT)
return 0;
if (errno == ENOENT)
return 0;
+ log_error("Cannot add dependency %s to %s, ignoring: %s", de->d_name, u->meta.id, strerror(-r));
char *template;
/* Also try the template dir */
char *template;
/* Also try the template dir */
- if (!(template = unit_name_template(name)))
+ template = unit_name_template(name);
+ if (!template)
return -ENOMEM;
path = join(unit_path, "/", template, suffix, NULL);
return -ENOMEM;
path = join(unit_path, "/", template, suffix, NULL);
STRV_FOREACH(p, u->meta.manager->lookup_paths.unit_path) {
int r;
STRV_FOREACH(p, u->meta.manager->lookup_paths.unit_path) {
int r;
- if ((r = process_dir(u, *p, t, ".wants", UNIT_WANTS)) < 0)
+ r = process_dir(u, *p, t, ".wants", UNIT_WANTS);
+ if (r < 0)
- if ((r = process_dir(u, *p, t, ".requires", UNIT_REQUIRES)) < 0)
+ r = process_dir(u, *p, t, ".requires", UNIT_REQUIRES);
+ if (r < 0)