]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
getty-generator: fix stripping /dev/
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 13 Dec 2013 22:21:35 +0000 (23:21 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 13 Dec 2013 22:24:16 +0000 (23:24 +0100)
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 = path_startswith(tty, "pts/");
+                                t = path_startswith(t, "pts/");
                                 if (!t)
                                         continue;