aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-07-27 06:03:24 +0000
committerEric Andersen <andersen@codepoet.org>2005-07-27 06:03:24 +0000
commit091a3e510e5f9c61c4d9f03bdbc8433847f645a8 (patch)
tree9187563ec878e5a68fa38b8dead515a2de8efe09
parentffaa3deeeb15f88c0b1240f4477464e426e92e89 (diff)
downloadbusybox-w32-091a3e510e5f9c61c4d9f03bdbc8433847f645a8.tar.gz
busybox-w32-091a3e510e5f9c61c4d9f03bdbc8433847f645a8.tar.bz2
busybox-w32-091a3e510e5f9c61c4d9f03bdbc8433847f645a8.zip
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 78009181d..748704e10 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);
58 /* 58 /*
59 * Things you may want to modify. 59 * Things you may want to modify.
60 * 60 *
61 * If ISSUE is not defined, agetty will never display the contents of the
62 * /etc/issue file. You will not want to spit out large "issue" files at the
63 * wrong baud rate. Relevant for System V only.
64 *
65 * You may disagree with the default line-editing etc. characters defined 61 * You may disagree with the default line-editing etc. characters defined
66 * below. Note, however, that DEL cannot be used for interrupt generation 62 * below. Note, however, that DEL cannot be used for interrupt generation
67 * and for line editing at the same time. 63 * and for line editing at the same time.
68 */ 64 */
69 65
70#ifdef SYSV_STYLE 66#ifdef SYSV_STYLE
71#define ISSUE "/etc/issue" /* displayed before the login prompt */
72#include <sys/utsname.h> 67#include <sys/utsname.h>
73#include <time.h> 68#include <time.h>
74#endif 69#endif
75 70
71 /* If ISSUE is not defined, agetty will never display the contents of the
72 * /etc/issue file. You will not want to spit out large "issue" files at the
73 * wrong baud rate.
74 */
75#define ISSUE "/etc/issue" /* displayed before the login prompt */
76
76/* Some shorthands for control characters. */ 77/* Some shorthands for control characters. */
77 78
78#define CTL(x) (x ^ 0100) /* Assumes ASCII dialect */ 79#define CTL(x) (x ^ 0100) /* Assumes ASCII dialect */