summaryrefslogtreecommitdiff
path: root/src/getty-generator.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-04-16 01:48:02 +0200
committerLennart Poettering <lennart@poettering.net>2011-04-16 02:03:34 +0200
commit6f9a471aa677ff4048aea168d7cea3697cf51fb3 (patch)
tree3e938ced3c857d51c15b42c0ac9a5d310947d7b2 /src/getty-generator.c
parent8480e784f176a4911e22497e01bfbdf084342520 (diff)
util: truncate newline inside of read_one_line_file() already
Diffstat (limited to 'src/getty-generator.c')
-rw-r--r--src/getty-generator.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/getty-generator.c b/src/getty-generator.c
index f49f9eae99..683775a4d5 100644
--- a/src/getty-generator.c
+++ b/src/getty-generator.c
@@ -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