• Troy@lemmy.ca
    link
    fedilink
    arrow-up
    19
    ·
    1 year ago

    That reminds me…

    In circa 1995 I was running a dial upBBS service – as a teenager. So if course, it was full of bootlegged video games and such, and people would dial in, download a game, log off.

    Someone uploaded Descent or something like that. But they had put "deltree /y C:" or similar into a batch file, used a BAT2COM converter program, then a COM2EXE program, then padded the file size to approximately the right size with random crap (probably just using APPEND)… And uploaded it. Well, fortunately for the rest of my users, I say the game and said: oh, that’s neat, I should try it and copied it to another computer over my internal network and launched it. It started deleting files right away and I hit CTRL-C to abort. I lost only a few dozen files.

    Banned the user, deleted the package. Got lucky.

  • BCsven@lemmy.ca
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    1 year ago

    The theme contained rm -rf, but claims it wasn’t malicious intent…I assume rm -rf for cleanup, but seems like it should have a apecific path other than /

  • MyNameIsRichard@lemmy.ml
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    1 year ago

    A theme is software and software has bugs. While this one had a pretty dramatic effect, you take basically the same risk with every program you run. This, along with hardware and user errors are why backups are so important; they change a disaster to an inconvenience.

    / Preach mode off

    • ShortN0te@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      A windows device just wiped the hardware settings of a periphery device, because it got an update and the new lighting settings wanted to control the LEDs in that device. All gone

  • fl42v@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    The Gray Layout installation script ran the rm -rf command, which normally removes all files from the device

    Translation difficulties, or does the author really think that’s what it’s normally used for?

  • db2@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    3
    ·
    1 year ago

    Trust but verify. It was a text file, it doesn’t get much easier to do the second step of that.

    • aksdb@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      … in which case you would have seen that they delete a path referenced by an env var being set earlier.

      How likely do you think it would have been to notice, that this env var will turn up empty in your specific case?

  • Certainity45@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Hetken jo ajattelin, että mitä hiivatin noituutta nämä Suomeksi olevat konekääntäjän tekstit ovat olevinaan.

  • ffhein@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I wonder how much would break, and how much time it would take to update everything, if all shells decided to implement a breaking change to prevent these kind of scenarios. E.g. make “set -u” default or some other solution

  • HarriPotero@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    SIDPlay did something similar on the Mac.

    It has the neat built-in feature of rsyncing the high voltage SID collection to your computer.

    However, if you deleted your local copy of it and tried to re-sync it’d update (with deletes) against / instead. Bye bye files.