]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/ask-password-api: backspace all chars at once 13022/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 11 Jul 2019 07:00:49 +0000 (09:00 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 11 Jul 2019 22:35:05 +0000 (00:35 +0200)
commit8e9d1eece6da0fbce8afa6ff52830c5125d68e82
treedcf12b4c997a8d0904f0330b4b2ed895fa9f5999
parentb86a91e7ba910535b08e7886d2bef672d4b5f913
shared/ask-password-api: backspace all chars at once

We'd call loop_write() separately for each char. Let's be nice to
serial console users, and write the full string in one go.

Coverity was complaining that we're not checking the return value
from loop_write(). Rework the code a bit and add voidify.
CID#1402323.
src/shared/ask-password-api.c