From: root Date: Wed, 22 May 2019 23:10:23 +0000 (+0300) Subject: login: fixup button_open() fd X-Git-Tag: v243-rc1~389 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12e982425cdc345730a86e2988b2db1c8b6d41ba;p=thirdparty%2Fsystemd.git login: fixup button_open() fd --- diff --git a/src/login/logind-button.c b/src/login/logind-button.c index ac94e832dc4..86c9121f270 100644 --- a/src/login/logind-button.c +++ b/src/login/logind-button.c @@ -341,7 +341,7 @@ int button_open(Button *b) { (void) button_set_mask(b->name, fd); b->io_event_source = sd_event_source_unref(b->io_event_source); - r = sd_event_add_io(b->manager->event, &b->io_event_source, b->fd, EPOLLIN, button_dispatch, b); + r = sd_event_add_io(b->manager->event, &b->io_event_source, fd, EPOLLIN, button_dispatch, b); if (r < 0) return log_error_errno(r, "Failed to add button event for %s: %m", p);