summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2005-07-27 06:03:24 +0000
committerEric Andersen2005-07-27 06:03:24 +0000
commit091a3e510e5f9c61c4d9f03bdbc8433847f645a8 (patch)
tree9187563ec878e5a68fa38b8dead515a2de8efe09
parentffaa3deeeb15f88c0b1240f4477464e426e92e89 (diff)
downloadbusybox-091a3e510e5f9c61c4d9f03bdbc8433847f645a8.zip
busybox-091a3e510e5f9c61c4d9f03bdbc8433847f645a8.tar.gz
The change in getty.c in Busybox 1.01 caused the /etc/issue file to not
be displayed unless CONFIG_FEATURE_UTMP is set. This was not the intended result.
-rw-r--r--busybox/loginutils/getty.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/busybox/loginutils/getty.c b/busybox/loginutils/getty.c
index 7800918..748704e 100644
--- a/busybox/loginutils/getty.c
+++ b/busybox/loginutils/getty.c
@@ -58,21 +58,22 @@ extern void updwtmp(const char *filename, const struct utmp *ut);
/*
* Things you may want to modify.
*
- * If ISSUE is not defined, agetty will never display the contents of the
- * /etc/issue file. You will not want to spit out large "issue" files at the
- * wrong baud rate. Relevant for System V only.
- *
* You may disagree with the default line-editing etc. characters defined
* below. Note, however, that DEL cannot be used for interrupt generation
* and for line editing at the same time.
*/
#ifdef SYSV_STYLE
-#define ISSUE "/etc/issue" /* displayed before the login prompt */
#include <sys/utsname.h>
#include <time.h>
#endif
+ /* If ISSUE is not defined, agetty will never display the contents of the
+ * /etc/issue file. You will not want to spit out large "issue" files at the
+ * wrong baud rate.
+ */
+#define ISSUE "/etc/issue" /* displayed before the login prompt */
+
/* Some shorthands for control characters. */
#define CTL(x) (x ^ 0100) /* Assumes ASCII dialect */