981: Porn Folder

Explain xkcd: It's 'cause you're dumb.
Revision as of 21:14, 25 August 2013 by Quicksilver (talk | contribs) (Explanation: In this comic.)
Jump to: navigation, search
Porn Folder
Eww, gross, you modified link()? How could you enjoy abusing a filesystem like that?
Title text: Eww, gross, you modified link()? How could you enjoy abusing a filesystem like that?


Cueball seems to have found a porn folder. However, it contains a directory loop, set up by a person off-screen. It is possible to actually do this, but it is widely regarded as a very bad idea, as it can break the system in not-so-obvious ways (mostly by causing seemingly-trivial operations to infinite loop). It would seem that violating this taboo is what turns him on.

link() is the Linux system call to create a hard link. In an unmodified Linux kernel, it will not allow directory hard links for this exact reason; the person who set up the porn folder apparently "forced" Linux to comply, with all of the sexual analogies that suggests.


[A person sits at a desk, looking at a laptop screen with one hand on his chin.]
Person: So I thought I found your porn folder, in calendar/backup/PORN
Person #2 (off screen): Don't open that!
[A wider shot of the person looking at the laptop.]
Person #1: But it contains a bunch more folders, filled with more folders, and then... after 20 levels, somehow I'm back at the main folder?
Person #2 (off screen): It's, uh, well hidden.
[The person has turned around in the chair, now with the laptop in his lap.]
Person #1: I think there's no actual porn here. - You're just turned on by filesystems.
Person #2 (off screen): It's a hardlinked directory loop -- so taboo!
Person #1: Now I feel dirty sharing a drive with you.

comment.png add a comment! ⋅ comment.png add a topic (use sparingly)! ⋅ Icons-mini-action refresh blue.gif refresh comments!


Its not difficult to do that. (talk) (please sign your comments with ~~~~)

What? Apply subjective motivations to subjects?

It may easy but you would soon learn not to. I used Google News BEFORE it was clickbait (talk) 12:19, 22 January 2015 (UTC)

Xcopy would be a killer. Jakee308 (talk) 10:59, 16 June 2015 (UTC)

I did this. Way, way back, in version 7 (I said way, way back), the convention of directory entries "." and ".." was only a convention, not enforced. It was possible, and I did, make a directory where ".." did NOT go to the parent directory, but went to a hidden directory. Only I could find the files there.

This ended when system 3's fsck found that directory, and put it in lost+found.

--Keybounce (talk) 07:38, 4 August 2017 (UTC)