chiark / gitweb /
Do no isolate in case of emergency or severe problems
[elogind.git] / src / getty-generator / getty-generator.c
index 1cef6aeae999851db56328badeae72fd00dc5a26..e811830a6bd0a816b8edcc743102e81965a5ff7a 100644 (file)
@@ -28,6 +28,7 @@
 #include "mkdir.h"
 #include "unit-name.h"
 #include "virt.h"
+#include "fileio.h"
 
 static const char *arg_dest = "/tmp";
 
@@ -131,7 +132,7 @@ int main(int argc, char *argv[]) {
 
                 /* Automatically add in a serial getty on the kernel
                  * console */
-                if (tty_is_vc(tty))
+                if (isempty(tty) || tty_is_vc(tty))
                         free(active);
                 else {
                         int k;