Skip to content
  • Andrius Štikonas's avatar
    Fix a possible null pointer dereference. · 13c063a1
    Andrius Štikonas authored
    On some systems getlogin() function might fail to obtain user name.
    For now just check whether pointer is nullptr. In that case suspending
    plasma device automounter would not work but at least we will not crash.
    
    In future it might make sense to try to use other methods of obtaining login
    name, such as running "who am i".
    
    BUG: 381987
    13c063a1