On Mon, Apr 13, 2015 at 22:03:51 +0200, Michael Biebl wrote:

> ++static int manager_dispatch_ask_password_fd(sd_event_source *source,
> ++                                            int fd, uint32_t revents, void 
> *userdata) {
> ++        Manager *m = userdata;
> ++
> ++        assert(m);
> ++
> ++        flush_fd(fd);
> ++
> ++        m->have_ask_password = have_ask_password();
> ++        if (m->have_ask_password < 0)
> ++                /* Log error but continue. Negative have_ask_password
> ++                 * is treated as unknown status. */
> ++                log_error("Failed to list /run/systemd/ask-password: %s", 
> strerror(m->have_ask_password));

shouldn't that be strerror(-m->have_ask_password)?

Cheers,
Julien

> ++
> ++        return 0;
> ++}
> ++

Attachment: signature.asc
Description: Digital signature

Reply via email to