]> arthur.barton.de Git - bup.git/commit
pwdgrp: pass strings to python for python 3
authorRob Browning <rlb@defaultvalue.org>
Fri, 3 Jan 2020 21:23:54 +0000 (15:23 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 2 Feb 2020 19:30:12 +0000 (13:30 -0600)
commit4436ea65fffddde86abdf1d59f9aa28662a37c64
tree11c6f723747cca6da6305631173e054b4638bf21
parentbd08128284ab3c4444f09071e7deeb3fb0684ce4
pwdgrp: pass strings to python for python 3

Python 3's getpwnam and getgrnam functions only accept unicode
strings, so decode the bytes we have as iso-8859-1, which is what they
should be, given bup-python's LC_CTYPE override.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/pwdgrp.py