Index: uspace/app/getterm/getterm.c
===================================================================
--- uspace/app/getterm/getterm.c	(revision dd567c61b9912310795e9518b6a150c5a8158207)
+++ uspace/app/getterm/getterm.c	(revision 226f72e46b5803dcbb9fe870d40b76d505a7b53e)
@@ -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);
