diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-06 21:09:42 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-04-06 21:09:42 +0200 |
commit | 1165bb497ec2d6d1b3b12d6c03435b0210efe9e5 (patch) | |
tree | d4afaabb36dba059ed49bcaf0551830981aafe99 /Jenkinsfile | |
parent | c55754fd5fe69a44ea33830d60342b894768af58 (diff) | |
download | vyos-1x-1165bb497ec2d6d1b3b12d6c03435b0210efe9e5.tar.gz vyos-1x-1165bb497ec2d6d1b3b12d6c03435b0210efe9e5.zip |
login: T5875: fix corner case for KeyError: 'getpwuid(): uid not found: XXXX'
Commit 1b364428f ("login: T5875: restore home directory permissions only when
needed") added logic to chown the users home directory if it's UID changes.
This might happen when a user account is deleted and re-added to the system.
Under rar e circumstances it was possible that the implementation triggered
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 'getpwuid(): uid not found: XXXX'
This has been fixed by re-arranging the code path with an additional try/except
if the PW database information could not be retrieved leading to an implicit
chown() of the home directory to the user beeing added.
Diffstat (limited to 'Jenkinsfile')
0 files changed, 0 insertions, 0 deletions