chiark / gitweb /
getty-generator: fix stripping /dev/
[elogind.git] / src / getty-generator / getty-generator.c
index feb5815..aeb6d71 100644 (file)
@@ -147,7 +147,7 @@ int main(int argc, char *argv[]) {
                                         t = tty;
 
                                 /* Then, make sure it's actually a pty */
-                                t = path_startswith(tty, "pts/");
+                                t = path_startswith(t, "pts/");
                                 if (!t)
                                         continue;