Skip to content
  • Ahmad Samir's avatar
    Use tighter matching when finding the default profile file name · 10c30600
    Ahmad Samir authored
    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
    10c30600