You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
472 B
12 lines
472 B
--- ./src/pacman/pacman.c 2015-12-23 19:50:37.093132801 -0300
|
|
+++ ./src/pacman/pacman.c 2015-12-23 23:30:17.986469980 -0300
|
|
@@ -1128,7 +1128,8 @@
|
|
} while(c != EOF);
|
|
|
|
free(line);
|
|
- if(!freopen(ctermid(NULL), "r", stdin)) {
|
|
+ //if(!freopen(ctermid(NULL), "r", stdin)) {
|
|
+ if(!freopen("/dev/tty", "r", stdin)) { // HACK termux doesn't have ctermid()
|
|
pm_printf(ALPM_LOG_ERROR, _("failed to reopen stdin for reading: (%s)\n"),
|
|
strerror(errno));
|
|
}
|
|
|