chiark / gitweb /
logind: fd 0 is a valid fd
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Feb 2018 17:33:51 +0000 (18:33 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:59:06 +0000 (07:59 +0200)
src/login/logind-session-device.c

index aac8535aba8255dbbd4b8ff5437ca15c367d36e5..8cac8834408551f20dba978f38a188f325e0cb4a 100644 (file)
@@ -531,7 +531,7 @@ int session_device_save(SessionDevice *sd) {
 }
 
 void session_device_attach_fd(SessionDevice *sd, int fd, bool active) {
-        assert(fd > 0);
+        assert(fd >= 0);
         assert(sd);
         assert(sd->fd < 0);
         assert(!sd->active);