]> arthur.barton.de Git - bup.git/commit
pwdgrp.Group: allow gr_passwd to be None
authorMuh Muhten <muh.muhten@gmail.com>
Thu, 26 May 2022 05:07:47 +0000 (01:07 -0400)
committerRob Browning <rlb@defaultvalue.org>
Sat, 25 Jun 2022 18:26:06 +0000 (13:26 -0500)
commit24ed462c044d4176f299db6abc14f6db24453b52
tree7e0a660efae4b243f7842eb00c4dfc16851fec7b
parenta995eea8bd57041cb373f7041da373897a2ed597
pwdgrp.Group: allow gr_passwd to be None

I haven't looked into this too closely, but it seems that Android's
getgr* fill gr_passwd with a null pointer, mapped to python None, which
is not a bytes.

Since this assert seems to be 100% py3 sanity-checking and bup doesn't
actually use the gr_passwd anywhere, it should be safe to pass the None.

Signed-off-by: Muh Muhten <muh.muhten@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
[rlb@defaultvalue.org: adjust commit message; add origin comment]
lib/bup/pwdgrp.py