Compare commits
No commits in common. "df80c98cdece42c6b49f4c9adc45017b0b0582c6" and "c5b6b4b6d08cf4c16a871401358faeb5a186c02a" have entirely different histories.
df80c98cde
...
c5b6b4b6d0
|
@ -5646,7 +5646,9 @@ void unit_dump_config_items(FILE *f) {
|
|||
NULSTR_FOREACH(i, load_fragment_gperf_nulstr) {
|
||||
const char *rvalue = "OTHER", *lvalue;
|
||||
const ConfigPerfItem *p;
|
||||
size_t prefix_len;
|
||||
const char *dot;
|
||||
unsigned j;
|
||||
|
||||
assert_se(p = load_fragment_gperf_lookup(i, strlen(i)));
|
||||
|
||||
|
@ -5655,7 +5657,7 @@ void unit_dump_config_items(FILE *f) {
|
|||
p->ltype == DISABLED_LEGACY)
|
||||
continue;
|
||||
|
||||
for (size_t j = 0; j < ELEMENTSOF(table); j++)
|
||||
for (j = 0; j < ELEMENTSOF(table); j++)
|
||||
if (p->parse == table[j].callback) {
|
||||
rvalue = table[j].rvalue;
|
||||
break;
|
||||
|
@ -5663,17 +5665,15 @@ void unit_dump_config_items(FILE *f) {
|
|||
|
||||
dot = strchr(i, '.');
|
||||
lvalue = dot ? dot + 1 : i;
|
||||
prefix_len = dot-i;
|
||||
|
||||
if (dot) {
|
||||
size_t prefix_len = dot - i;
|
||||
|
||||
if (dot)
|
||||
if (!prev || !strneq(prev, i, prefix_len+1)) {
|
||||
if (prev)
|
||||
fputc('\n', f);
|
||||
|
||||
fprintf(f, "[%.*s]\n", (int) prefix_len, i);
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(f, "%s=%s\n", lvalue, rvalue);
|
||||
prev = i;
|
||||
|
|
|
@ -159,7 +159,7 @@ static int on_home_inotify(sd_event_source *s, const struct inotify_event *event
|
|||
(void) bus_manager_emit_auto_login_changed(m);
|
||||
}
|
||||
|
||||
if ((event->mask & (IN_DELETE | IN_CLOSE_WRITE | IN_MOVED_FROM)) != 0) {
|
||||
if ((event->mask & (IN_DELETE|IN_MOVED_FROM|IN_DELETE)) != 0) {
|
||||
Home *h;
|
||||
|
||||
if (FLAGS_SET(event->mask, IN_DELETE))
|
||||
|
|
|
@ -3189,8 +3189,6 @@ static int container_next_item(sd_bus_message *m, struct bus_container *c, size_
|
|||
int sz;
|
||||
|
||||
sz = bus_gvariant_get_size(c->signature);
|
||||
if (sz == 0)
|
||||
return -EBADMSG;
|
||||
if (sz < 0) {
|
||||
int alignment;
|
||||
|
||||
|
|
Loading…
Reference in New Issue