]> git.ipfire.org Git - thirdparty/systemd.git/commit
homework: actually try all supplied passwords
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Oct 2021 14:41:31 +0000 (16:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Oct 2021 20:46:46 +0000 (22:46 +0200)
commit22aba9b2fcb5db1b48abb267f12a1420fd15ea4d
treec94e5c63bf923e2d034e44770b699e859ec76b96
parentbf15879b39b82783de145d84ed87135c140b2be8
homework: actually try all supplied passwords

Unfortunately mount.cifs doesn't really let us know much about the
reason for the failure. Hence, assume it's caused by a bad password, and
retry on any failure with additional passwords that we might have.

A loop to do this was always in place, but none of the possible
codepaths actually allowed to iterate more than once. Fix that.
src/home/homework-cifs.c