aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-07-27 06:05:38 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-07-27 06:05:38 +0000
commit09025ea0803794f49cca3a4ad652b1e8f9067eb4 (patch)
tree9ba5f5e0ee3c08f3f630d4e1e1fac5207bdef41d
parent5ad3481b9ea928c9a6973b873a12db795564f7ec (diff)
downloadbusybox-w32-09025ea0803794f49cca3a4ad652b1e8f9067eb4.tar.gz
busybox-w32-09025ea0803794f49cca3a4ad652b1e8f9067eb4.tar.bz2
busybox-w32-09025ea0803794f49cca3a4ad652b1e8f9067eb4.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. git-svn-id: svn://busybox.net/trunk/busybox@10928 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--loginutils/getty.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 9648a1742..9bad008c6 100644
--- a/loginutils/getty.c
+++ b/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 */