Skip to content

Use tighter matching when finding the default profile file name

Ahmad Samir requested to merge work/ahmad/profile-names into master

The code was checking if the path ended with a specific file name, which meant that if you have two profiles "Root Shell.profile" and "Shell.profile", the matching is messed up because the former ends with the latter. Instead since we're using the path, add a '/', this way we're matching the whole file name which is the last component in the path after the last '/'.

Thanks to the bug reporter for git bisect'ing the repo to find the culprit commit.

BUG: 447872 FIXED_IN: 21.12.0

Merge request reports