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