[Toybox] [PATCH] Add ftruncate logic to handle non-regular files

2020-09-15 Thread Chris Sarra via Toybox
ftruncate was failing on device files, leading to whole dd.c failures. This patch allows us to dump device files. --- toys/pending/dd.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/toys/pending/dd.c b/toys/pending/dd.c index 7de91825..a7b7f5fd 100644 ---

[Toybox] [PATCH] Add fflush to lib/password; remove print from stty

2020-09-15 Thread Chris Sarra via Toybox
toybox logins were displaying the "password:" prompt after the user entered a password. This patch fixes the issue so the password prompt shows *before* password is entered. --- lib/password.c | 1 + toys/pending/stty.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git