X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fgetty-generator.c;h=b8228e98223f83506a54019f427389f46a18f959;hp=141402bd15b8f6b08f741fe0a06a5b53731fde59;hb=4c12626c8e3491570b395d68380543e10c98ad33;hpb=980fc73d1fcda8c2a494a18dbd3262fdb97f5fbe diff --git a/src/getty-generator.c b/src/getty-generator.c index 141402bd1..b8228e982 100644 --- a/src/getty-generator.c +++ b/src/getty-generator.c @@ -73,6 +73,8 @@ int main(int argc, char *argv[]) { log_parse_environment(); log_open(); + umask(0022); + if (detect_container(NULL) > 0) { log_debug("Automatic adding console shell."); @@ -115,7 +117,7 @@ int main(int argc, char *argv[]) { /* Automatically add in a serial getty on the first * virtualizer console */ if (access("/sys/class/tty/hvc0", F_OK) == 0) { - log_debug("Automatic adding serial getty for hvc0."); + log_debug("Automatically adding serial getty for hvc0."); if (add_symlink("serial-getty@.service", "serial-getty@hvc0.service") < 0) r = EXIT_FAILURE; @@ -123,7 +125,7 @@ int main(int argc, char *argv[]) { } if (access("/sys/class/tty/xvc0", F_OK) == 0) { - log_debug("Automatic adding serial getty for xvc0."); + log_debug("Automatically adding serial getty for xvc0."); if (add_symlink("serial-getty@.service", "serial-getty@xvc0.service") < 0) r = EXIT_FAILURE;