From: Lennart Poettering Date: Wed, 22 Nov 2017 11:10:39 +0000 (+0100) Subject: logind: fix sysfs change trigger code X-Git-Tag: v236~94^2~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ddd59d0c7ffc77158ab2d6f52f08812670bb9160;p=thirdparty%2Fsystemd.git logind: fix sysfs change trigger code We can't create files in sysfs, hence don't bother. Also if we ignore the return value, do so explicitly by casting to void. --- diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 196d68bbfb7..ae36ececb51 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -1282,7 +1282,7 @@ static int trigger_device(Manager *m, struct udev_device *d) { if (!t) return -ENOMEM; - write_string_file(t, "change", WRITE_STRING_FILE_CREATE); + (void) write_string_file(t, "change", 0); } return 0;