mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
Revert my change to do extra termType checking. That is done elsewhere.
Silly me. -Erik
This commit is contained in:
parent
be30a6b8b0
commit
8fc300976f
3
init.c
3
init.c
@ -420,9 +420,6 @@ static pid_t run(char *command, char *terminal, int get_enter)
|
||||
while ((environ[j]) && (i < MAXENV)) {
|
||||
if (strncmp(environ[j], "TERM=", 5))
|
||||
environment[i++] = environ[j];
|
||||
else {
|
||||
snprintf(termType, sizeof(termType) - 1, environ[j]);
|
||||
}
|
||||
j++;
|
||||
}
|
||||
|
||||
|
@ -420,9 +420,6 @@ static pid_t run(char *command, char *terminal, int get_enter)
|
||||
while ((environ[j]) && (i < MAXENV)) {
|
||||
if (strncmp(environ[j], "TERM=", 5))
|
||||
environment[i++] = environ[j];
|
||||
else {
|
||||
snprintf(termType, sizeof(termType) - 1, environ[j]);
|
||||
}
|
||||
j++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user