From 2373a380055a78d6018bb221b5452a8a0490e7d2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 14 Apr 2018 15:44:02 +0530 Subject: [PATCH] Linux installer: Fix umask question not working with the recommended install command because stdin is a pipe --- setup/linux-installer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/linux-installer.py b/setup/linux-installer.py index 859d80bdc6..d5cc141ab3 100644 --- a/setup/linux-installer.py +++ b/setup/linux-installer.py @@ -705,6 +705,7 @@ def check_umask(): ' this can cause system breakage when running the installer because' ' of bugs in common system utilities.' ) + sys.stdin = open('/dev/tty') # stdin is a pipe from wget while True: q = raw_input('Should the installer (f)ix the umask, (i)gnore it or (a)bort [f/i/a Default is abort]: ') or 'a' if q in 'f i a'.split():