The old behavior is undocumented and we already require the user
to explicitly request reading from stdin so we should oblige them
whether stdin is a tty or not.

Signed-off-by: Andrew Gregory <[email protected]>
---
 src/pacman/pacman.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index e86b5c7..d9de556 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -809,7 +809,7 @@ int main(int argc, char *argv[])
        }
 
        /* we support reading targets from stdin if a cmdline parameter is '-' 
*/
-       if(!isatty(fileno(stdin)) && alpm_list_find_str(pm_targets, "-")) {
+       if(alpm_list_find_str(pm_targets, "-")) {
                size_t current_size = PATH_MAX;
                char *vdata, *line = malloc(current_size);
 
-- 
1.8.0


Reply via email to