• carzian@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    The command was rm -rf $pathvariable

    Bug in the code caused the path to be root. Wasn’t explicitly malicious

    • Dandroid@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      Don’t most distros have safeguards against this? I tried sudo rm -rf / in an Ubuntu VM that I was about to delete just to see what happened, and it gave me a warning. I had to add some other option to bypass the warning.