summaryrefslogtreecommitdiff
path: root/interface-definitions/include/interface/mac.xml.i
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-06 21:09:42 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-04-07 14:36:30 +0000
commita4236f70d16654bedab6b5d02fc6b5d343196593 (patch)
tree51f97f117c2a2296713240efb13c5c23c0242b60 /interface-definitions/include/interface/mac.xml.i
parent812bb6ac4cf8067ca45f1c2557d1a1b2a1b166fe (diff)
downloadvyos-1x-a4236f70d16654bedab6b5d02fc6b5d343196593.tar.gz
vyos-1x-a4236f70d16654bedab6b5d02fc6b5d343196593.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. (cherry picked from commit 1165bb497ec2d6d1b3b12d6c03435b0210efe9e5)
Diffstat (limited to 'interface-definitions/include/interface/mac.xml.i')
0 files changed, 0 insertions, 0 deletions