]> git.proxmox.com Git - pve-container.git/commit
fix 1153: let crypt() handle unicode CT passwords
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 23 Jan 2017 12:20:30 +0000 (13:20 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 26 Jan 2017 09:32:54 +0000 (10:32 +0100)
commitcfa3086d95c3a39b584b2d60aa53938e1f30b3dc
tree14855c47455033b15e843f0d7b4dfebe517ba9de
parent2913df064bc7e1b6430b050c979777a3152bb43b
fix 1153: let crypt() handle unicode CT passwords

according to "perldoc -f crypt", crypt() should downgrade
unicode strings anyway:

If using crypt() on a Unicode string (which potentially has
characters with codepoints above 255), Perl tries to make
sense of the situation by trying to downgrade (a copy of)
the string back to an eight-bit byte string before calling
crypt() (on that copy).  If that works, good.  If not,
crypt() dies with "Wide character in crypt".

login via Spice and ssh works now at least, the noVNC /
vncterm combo seems to be broken because of an unrelated
unicode issue..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/LXC/Setup/Base.pm