diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-02-22 00:50:20 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-02-22 00:50:20 +0000 |
| commit | 6f3149cdebebccdb9677afe960bf3a44cd61e27a (patch) | |
| tree | 11f0ad4b9bff47aed3b729c29314ea428cfa9a1d | |
| parent | ffd226c8dd3c188074cd5fa950920db33248b7bc (diff) | |
| download | busybox-w32-6f3149cdebebccdb9677afe960bf3a44cd61e27a.tar.gz busybox-w32-6f3149cdebebccdb9677afe960bf3a44cd61e27a.tar.bz2 busybox-w32-6f3149cdebebccdb9677afe960bf3a44cd61e27a.zip | |
Revert my change to do extra termType checking. That is done elsewhere.
Silly me.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@1878 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -rw-r--r-- | init.c | 3 | ||||
| -rw-r--r-- | init/init.c | 3 |
2 files changed, 0 insertions, 6 deletions
| @@ -420,9 +420,6 @@ static pid_t run(char *command, char *terminal, int get_enter) | |||
| 420 | while ((environ[j]) && (i < MAXENV)) { | 420 | while ((environ[j]) && (i < MAXENV)) { |
| 421 | if (strncmp(environ[j], "TERM=", 5)) | 421 | if (strncmp(environ[j], "TERM=", 5)) |
| 422 | environment[i++] = environ[j]; | 422 | environment[i++] = environ[j]; |
| 423 | else { | ||
| 424 | snprintf(termType, sizeof(termType) - 1, environ[j]); | ||
| 425 | } | ||
| 426 | j++; | 423 | j++; |
| 427 | } | 424 | } |
| 428 | 425 | ||
diff --git a/init/init.c b/init/init.c index 4c05c38e3..55a81d309 100644 --- a/init/init.c +++ b/init/init.c | |||
| @@ -420,9 +420,6 @@ static pid_t run(char *command, char *terminal, int get_enter) | |||
| 420 | while ((environ[j]) && (i < MAXENV)) { | 420 | while ((environ[j]) && (i < MAXENV)) { |
| 421 | if (strncmp(environ[j], "TERM=", 5)) | 421 | if (strncmp(environ[j], "TERM=", 5)) |
| 422 | environment[i++] = environ[j]; | 422 | environment[i++] = environ[j]; |
| 423 | else { | ||
| 424 | snprintf(termType, sizeof(termType) - 1, environ[j]); | ||
| 425 | } | ||
| 426 | j++; | 423 | j++; |
| 427 | } | 424 | } |
| 428 | 425 | ||
