remove strange bloat dup2() usage, sync this code with mainstream login-utils, size reduce
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -528,12 +528,11 @@ static void open_tty(char *tty, struct termio *tp, int local) | |
| /* Open the tty as standard input. */ | |
| + | close(0); |
| debug("open(2)\n"); | |
| fd = open(tty, O_RDWR | O_NONBLOCK, 0); | |
| - | if (dup2(fd, STDIN_FILENO) == -1) |
| + | if (fd != 0) |
| error("/dev/%s: cannot open as standard input: %m", tty); | |
| - | close(fd); |
| - | |
| } else { | |
| /* | |