summaryrefslogtreecommitdiff
path: root/script/testauthenticator.py
diff options
context:
space:
mode:
Diffstat (limited to 'script/testauthenticator.py')
-rwxr-xr-xscript/testauthenticator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/testauthenticator.py b/script/testauthenticator.py
index 91767ad..fa7a1ac 100755
--- a/script/testauthenticator.py
+++ b/script/testauthenticator.py
@@ -9,8 +9,8 @@ VALID_PW = b"12345"
def main():
- with os.fdopen(3, "rb") as authfd:
- inp = authfd.read()
+ with os.fdopen(3, "rb", buffering=0) as authfd:
+ inp = authfd.read(511)
u, p, *r = inp.split(b"\0")
if len(r) > 2: