redis: Update from 4.0.8 to 4.0.9
[termux-packages] / disabled-packages / pacman / pacman.patch
1 --- ./src/pacman/pacman.c 2015-12-23 19:50:37.093132801 -0300
2 +++ ./src/pacman/pacman.c 2015-12-23 23:30:17.986469980 -0300
3 @@ -1128,7 +1128,8 @@
4 } while(c != EOF);
5
6 free(line);
7 - if(!freopen(ctermid(NULL), "r", stdin)) {
8 + //if(!freopen(ctermid(NULL), "r", stdin)) {
9 + if(!freopen("/dev/tty", "r", stdin)) { // HACK termux doesn't have ctermid()
10 pm_printf(ALPM_LOG_ERROR, _("failed to reopen stdin for reading: (%s)\n"),
11 strerror(errno));
12 }