Index: uspace/app/getterm/getterm.c
===================================================================
--- uspace/app/getterm/getterm.c	(revision dd567c61b9912310795e9518b6a150c5a8158207)
+++ uspace/app/getterm/getterm.c	(revision f3287e556d8774e8a920fcac5e1178e47a7caad4)
@@ -112,10 +112,4 @@
 	reopen(&stderr, 2, term, O_WRONLY, "w");
 	
-	/*
-	 * FIXME: fdopen() should actually detect that we are opening a console
-	 * and it should set line-buffering mode automatically.
-	 */
-	setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
-	
 	if (stdin == NULL)
 		return -2;
@@ -126,4 +120,10 @@
 	if (stderr == NULL)
 		return -4;
+	
+	/*
+	 * FIXME: fdopen() should actually detect that we are opening a console
+	 * and it should set line-buffering mode automatically.
+	 */
+	setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
 	
 	version_print(term);
