chiark / gitweb /
util: truncate newline inside of read_one_line_file() already
[elogind.git] / src / getty-generator.c
index f49f9eae99df54a108659064157932bfb939df4d..683775a4d50615be3af32159ef01aa478a06115d 100644 (file)
@@ -86,7 +86,6 @@ int main(int argc, char *argv[]) {
         if (read_one_line_file("/sys/class/tty/console/active", &active) >= 0) {
                 const char *tty;
 
-                truncate_nl(active);
                 if ((tty = strrchr(active, ' ')))
                         tty ++;
                 else