via: @memes@wetdry.world

https://wetdry.world/@memes/112717700557038278

the sqlite codebase is a gem.

tldr; mcaffee made a shit ton of sqlite files in the temp folder causing people to call the sqlite devs phone angrily. now they name all files etilqs to prevent this.

Text from the screenshot:

2006-10-31: The default prefix used to be “sqlite_”. But then Mcafee started using SQLite in their anti-virus product and it started putting files with the “sqlite” name in the c:/temp folder. This annoyed many windows users. Those users would then do a Google search for “sqlite”, find the telephone numbers of the developers and call to wake them up at night and complain. For this reason, the default name prefix is changed to be “sqlite” spelled backwards. So the temp files are still identified, but anybody smart enough to figure out the code is also likely smart enough to know that calling the developer will not help get rid of the file.

Code found at: https://github.com/sqlite/sqlite/blob/master/src/os.h#L65 (The line numbers in the screenshot and the code don’t match up)

  • MostlyBlindGamer@rblind.com
    link
    fedilink
    English
    arrow-up
    160
    ·
    4 months ago

    Wasn’t there a story about people calling curl devs because of car issues?

    For what it’s worth, I’m sure the SQLite devs could help somebody clean up their temp files. They just really shouldn’t have to.

  • bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    51
    arrow-down
    1
    ·
    edit-2
    4 months ago

    Forgive my ignorance. SQLite is a database software. Why would McAffee create lots of database files?

    [Edit:] I’m not asking why a program needs to store data. I’m asking why that necessitates many files. One database file (or one per table) should be enough, right?

    • qaz@lemmy.world
      link
      fedilink
      arrow-up
      66
      ·
      4 months ago

      Many programs use SQLite internally and McAfee decided to store the database files in C:/Temp

      • 7uWqKj@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        4 months ago

        No, these are sqlite temp files, not the database files. McAfee had no control over the temp files.

    • towerful@programming.dev
      link
      fedilink
      arrow-up
      53
      ·
      4 months ago

      Sqlite is a great embedded database.
      If you are storing lots and lots of information in a JSON file, CSV file, or coming up with your own serialisation… Chances are, sqlite is going to do it better.
      I know loads of android apps use sqlite for storage. I’ve also managed to open quite a few programmes “proprietary” file format in sqlite.

    • Michal@programming.dev
      link
      fedilink
      arrow-up
      21
      arrow-down
      1
      ·
      4 months ago

      The program needs to store multiple temporary files (one per virus definition update, or scan results or whatever purpose).

      It looks like they simply picked sqlite as a format because the data has a structured format and that way they leverage databases robustness, easiness to read and query the data.

      The comment appears to be from 2006. Sqlite mightve had some limitations then that necessitated creating a new (temporary) database file as a subset of larger database for performance reasons or to allow multiple processes to read/write them and then consolidate data back into the single database.

    • GBU_28@lemm.ee
      link
      fedilink
      English
      arrow-up
      5
      ·
      4 months ago

      Al sorts of applications would enjoy a database to log all sorts of stuff, store results, capture events, etc.

      SQLite is great because it doesn’t necessitate another infra dependency as it is stored to file

  • Clbull@lemmy.world
    link
    fedilink
    arrow-up
    36
    arrow-down
    1
    ·
    4 months ago

    John McAfee would be spinning like a rotisserie chicken in his grave. Or at least he would be if McAfee Software hadn’t already turned to shit long before his death.

    So the temp files are still identified, but anybody smart enough to figure out the code is also likely smart enough to know that calling the developer will not help get rid of the file.

    Don’t underestimate the stupidity of your average person.

  • livingcoder@programming.dev
    link
    fedilink
    arrow-up
    41
    arrow-down
    14
    ·
    4 months ago

    I love how the solution didn’t involve changing the prefix to “mcaffee_”. Now users don’t know who to blame. Great. That’s so nice of them.

    • camr_on@lemmy.world
      link
      fedilink
      arrow-up
      74
      arrow-down
      2
      ·
      edit-2
      4 months ago

      Then mcaffee_ would be appearing in unrelated sqlite-using applications

      • livingcoder@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        4 months ago

        Oh, I thought that the temp files were named by the user. If that’s not the case, that these are not databases created specifically by McAfee in the temp directory, then I’m not sure what the appropriate solution should be. Obscuring the file type and how the file is used from users is still a bad practice.

        • Dave.@aussie.zone
          link
          fedilink
          arrow-up
          30
          ·
          4 months ago

          McAfee wrote a program that used the Sqlite library for database storage.

          When going about its data storage business for McAfee’s program, the Sqlite library was storing files in C:\temp with prefixes like sqlite_3726371.

          Users see that and get angry, and bug the Sqlite developers.

          Now probably when initialising the Sqlite library McAfee could have given it the location of a directory to keep it’s temp files. Then they could have been tucked away somewhere along with the rest of the McAfee code base and be more easily recognised as belonging to them, but they didn’t.

          So because of a bit of careless programming on McAfee’s part, Sqlite developers were getting the heat because the files were easily recognisable as belonging to them.

          Because the Sqlite developers don’t have control of what McAfee was doing, the most expedient way to solve the problem was to obfuscate the name a bit.

          • livingcoder@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            4 months ago

            Yeah, if it’s purely a Sqlite implementation detail to create temp files, that’s on them to own and fix. I thoroughly dislike that the files are obscured from users.

            • dan@upvote.au
              link
              fedilink
              arrow-up
              1
              ·
              4 months ago

              McAfee might be doing something weird with the database, for example not closing it properly.

  • Flying Squid@lemmy.world
    link
    fedilink
    arrow-up
    27
    arrow-down
    2
    ·
    4 months ago

    I used to tell people that John McAfee always exited a room by jumping through a window while yelling, “MCAFEE RULES!” Which he didn’t, but maybe he did? Anyway, I miss that crazy motherfucker. Sometimes nuts make the world more fun.

  • dohpaz42@lemmy.world
    link
    fedilink
    English
    arrow-up
    30
    arrow-down
    12
    ·
    4 months ago

    Hm. The first hit on DuckDuckGo is a single entry for a guy and all it says is Contact the Business Inquiries.

    You would think a better solution to this problem would be to put a message on that page stating that if you’re a McAfee user looking for information about SQLite files in your temp folder, to call the McAfee support line.

    But hey what do I know, right?

    • Killing_Spark@feddit.de
      link
      fedilink
      arrow-up
      87
      ·
      edit-2
      4 months ago

      Did you just expect people that call random devs at random times to actually read any information on a website?

      • dohpaz42@lemmy.world
        link
        fedilink
        English
        arrow-up
        14
        arrow-down
        10
        ·
        4 months ago

        If that information said something like “McAfee users concerned about temp files, call (800) 123-4567”, then yes. Did I suggest anything more than that? No. 🙄

        • cm0002@lemmy.world
          link
          fedilink
          arrow-up
          54
          arrow-down
          2
          ·
          4 months ago

          Lol you never worked customer service or hell desk have you?

          The kinds of people who need this message, you would have lost the second you said “temp files”

            • cm0002@lemmy.world
              link
              fedilink
              arrow-up
              25
              arrow-down
              2
              ·
              4 months ago

              Irrelevant, these people will find their way into folders they have no business in and no idea what it’s doing and break shit

              It’s a big reason MS started hiding the windows folder after Win 98 (maybe 95)

              • dohpaz42@lemmy.world
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                9
                ·
                4 months ago

                How is that irrelevant? The folder is literally called Temp. Doesn’t matter anything else. You said, and I quote, “The kinds of people who need this message, you would have lost the second you said “temp files”.”

                Obviously not sure, given where the files were located. 🤦‍♂️

                And of course they didn’t know what the files were for; probably why they went searching for it, and eventually found the contact info for Richard Hipp.

                Me thinks you just want to shit on people for no other reason than to make yourself feel superior to them. 👏 Congrats!

            • T156@lemmy.world
              link
              fedilink
              English
              arrow-up
              7
              arrow-down
              1
              ·
              edit-2
              4 months ago

              Assuming that they went out to look for it, and didn’t just poke google with (“sqlite hacked my computer”) until they found a phone number.

              If they had gotten the phone number for a company called Super Queasy Lite and Easy/SQLitE instead of the developers, the company might well have received the calls instead.

              • tyler@programming.dev
                link
                fedilink
                arrow-up
                2
                ·
                4 months ago

                Assuming that they went out to look for it, and didn’t just poke google with (“sqlite hacked my computer”) until they found a phone number.

                and how in the world did they know to type the word “sqlite” in. Dude, the files are in the temp folder. The only way they know the name “sqlite” is if they literally visited the folder and looked there.

                • T156@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  4 months ago

                  Error message? McAfee can’t write to the drive because it’s full of photos of their grandchildren and dogs, so it clicks up “can’t write to c:\temp\sqlite_arcane_computer_magic.log: Disk is full”, and it goes from there?

          • dohpaz42@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            11
            ·
            4 months ago

            You do realize that these people were looking up contact info from a company they found because they were … wait for it … looking at files inside the temp folder … otherwise known as … are you sitting down? You really should sit for this … temp files!

            Imaging that. 😳 🤣

            By the way, I worked technical support for my local dialup ISP, Adobe, Best Buy (before they were called Geek Squad), and OnStar.

            But sure, what you said… 😉

            • relevants@feddit.de
              link
              fedilink
              arrow-up
              7
              ·
              4 months ago

              looking at files inside the temp folder … otherwise known as … are you sitting down? You really should sit for this … temp files!

              The point OP is making is that those people would not put 2 and 2 together to understand that the files they were looking at are called temp files, just because that’s the folder they found them in. They may not even remember the name of the folder, only that it contains a bunch of files with a prefix they’re now googling.

              Not sure why I’m bothering explaining this to you, the way you responded makes you look absolutely insufferable, but maybe someone else who comes across this will find it useful.

    • ricecake@sh.itjust.works
      link
      fedilink
      arrow-up
      13
      arrow-down
      1
      ·
      4 months ago

      Yup, you found the developer. That’s his phone number.

      It’s not exactly a new change either. In 2006 people weren’t going to the specific page from duckduckgo, they were probably finding the sqlite homepage, and then tracking down the contact info.

      20 years later it’s probably better to maintain consistency with the prefix than to change it even if it’s weird.

      • poke@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        4 months ago

        Update the site with mcafees phone number and only have the real one behind a click through you have to read

        • ricecake@sh.itjust.works
          link
          fedilink
          arrow-up
          4
          ·
          4 months ago

          So, sure that might work. More likely they forgot this bit is even here on account of it being 20 years old.

          Also, never doubt the persistence of a sufficiently motivated and impatient user. I don’t think needing to read something has ever stopped one.
          You can literally put animated flaming text and people will click right past.

          • Mr. Satan@monyet.cc
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            4 months ago

            During my time in a call center people would often call for invoices or messages they received. Most of my work there was reading the thing together with them. Nothing more was necessary, I just read alound their itemized invoice that they had received and it would solve their problem.

            Click through pop-ups are even worse in this regard. I myself usually just automatically click No before I understand what just happened.

            • ricecake@sh.itjust.works
              link
              fedilink
              arrow-up
              2
              ·
              4 months ago

              I worked for a developer at a Web hosting company for a while. I really wish my story about flaming text wasn’t true, and that the words weren’t “permanent unrecoverable data loss”, and the audience wasn’t internal support technicians.

              Gotta have a way to delete a vps, and there’s only so much you can do to get someone to check that they have the right one.

    • vcmj@programming.dev
      link
      fedilink
      arrow-up
      9
      ·
      4 months ago

      The way I understand the users didn’t necessarily realize McAfee is responsible, just that a bunch of sqlite files appeared in temp so they might not connect the dots here anyway. Or even know McAfee is installed considering their shady practices.

      • dohpaz42@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        4 months ago

        Fair point about not knowing McAfee if involved. But at the same time, it beats having your dev getting phone calls at all hours because McAfee’s devs were to lazy to ready the source file and learn how to change the freaking prefix of the file.

  • onlinepersona@programming.dev
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    23
    ·
    edit-2
    4 months ago

    What a time it must’ve been, being able to publish your phone number online without fear. Now you give it to any website and it’s sold straight away to advertisers. Making it public would be a nightmare.

    Anti Commercial-AI license

    • Ullallulloo@civilloquy.com
      link
      fedilink
      arrow-up
      14
      ·
      4 months ago

      I have my phone number on my personal website—never had any adverse consequences. In fact, the only two calls I’ve gotten have both been at my work number which isn’t on there somehow. One to ask a genuine question and one to give me 30 bucks in appreciation.

    • dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      4 months ago

      You don’t even need to make public yourself. City governments do it automatically, mostly if you’re a home owner. Other companies do it because they keep getting hacked.

      Try it.

      Go to your favorite search engine and type in your phone number (format it to look like a phone number). If you haven’t already gone through and had yourself removed from these types of sites, you’ll be appalled at what you find.