Remix.run Logo
burnt-resistor 20 hours ago

It's a super secret POSIX mode derived from clickbait-driven "personal media brands" that hawk Honey, BetterHelp, &| FTX.

    /* mkevil {filename} */

    #include <errno.h>
    #include <stdio.h>
    #include <sys/stat.h>

    #define S_EVIL 0166600 /* not evil at all */

    int main(int argc, char **argv) {
            struct stat st;
            
            if (argc != 2) {
                    fprintf(stderr, "Missing filename to make evil\n");
                    return 1;
            }

            if (stat(argv[1], &st) != 0) {
                    perror("stat()");
                    return 2;
            }


            if (chmod(argv[1], st.st_mode | S_EVIL) != 0) {
                    perror("chmod()");
                    return 3;
            }
    
            return 0;
    }

Unfortunately, some OSes are innocent but others may permit evil. ;-]

(But yeah, it's also disappointing when otherwise good content of good other creators is spoiled by some terrible junk. It's the ethical equivalent of selling out to private equity and pretending "nothing has changed".)

ShadowOfThePit 13 hours ago | parent [-]

This is incomprehensible to me. What does the code mean? What are you trying to say? What's your point? Is this some kind of joke?