chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do no isolate in case of emergency or severe problems
[elogind.git]
/
src
/
getty-generator
/
getty-generator.c
diff --git
a/src/getty-generator/getty-generator.c
b/src/getty-generator/getty-generator.c
index 1cef6aeae999851db56328badeae72fd00dc5a26..e811830a6bd0a816b8edcc743102e81965a5ff7a 100644
(file)
--- a/
src/getty-generator/getty-generator.c
+++ b/
src/getty-generator/getty-generator.c
@@
-28,6
+28,7
@@
#include "mkdir.h"
#include "unit-name.h"
#include "virt.h"
#include "mkdir.h"
#include "unit-name.h"
#include "virt.h"
+#include "fileio.h"
static const char *arg_dest = "/tmp";
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 */
/* 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;
free(active);
else {
int k;