summaryrefslogtreecommitdiffstats
path: root/include/exec/exec-all.h
diff options
context:
space:
mode:
authorDaniel P. Berrange2015-05-12 18:09:20 +0200
committerKevin Wolf2015-05-22 17:08:01 +0200
commit6a11d5183fb7564a3d32007b46846312fd61a1c5 (patch)
tree315e17c9f472ae9b173d75266adc1216891977c7 /include/exec/exec-all.h
parentutil: move read_password method out of qemu-img into osdep/oslib (diff)
downloadqemu-6a11d5183fb7564a3d32007b46846312fd61a1c5.tar.gz
qemu-6a11d5183fb7564a3d32007b46846312fd61a1c5.tar.xz
qemu-6a11d5183fb7564a3d32007b46846312fd61a1c5.zip
util: allow \n to terminate password input
The qemu_read_password() method looks for \r to terminate the reading of the a password. This is what will be seen when reading the password from a TTY. When scripting though, it is useful to be able to send the password via a pipe, in which case we must look for \n to terminate password input. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions