mricon / b4

Tool to help with email-based patch workflows
GNU General Public License v2.0
59 stars 20 forks source link

Cleanup fails on WSL hosts #35

Closed dumitruceclan closed 2 months ago

dumitruceclan commented 2 months ago

File "/usr/lib/python3/dist-packages/b4/ez.py", line 1835, in write_to_tar tuser = os.getlogin()

Prep cleanup will fail if run from WSL as os.getlogin() fails if /proc/self/loginuid is set to -1. https://stackoverflow.com/questions/74187896/os-getlogin-in-docker-container-throws-filenotfounderror

os.getenv('LOGNAME') or os.getenv('USER') could be alternatives