Moderators: Moderators General, Magistrates, Prelates
dns_server wrote:Most kind of searching commands avoid this by not following symlinks by default.
engr wrote:Desktop - My Computer - C - Windows - Desktop - My Computer - C - .....
At least that's how it was on Windows 98, I think.
tetsujin wrote:So the guy is enough of a Unix geek to want to create a hard-linked directory loop - but both characters refer to directories as "folders"?
("folder" may actually be a better abstraction than "directory" to describe a point in a directory hierarchy - but I always thought of it as a Windows-ism.)
cream wobbly wrote:inserting non-files into a filesystem is a strange and unique concept -- a hack.
engr wrote:Desktop - My Computer - C - Windows - Desktop - My Computer - C - .....
At least that's how it was on Windows 98, I think.
thepowersgang wrote:Shouldn't that be... Folder Porn? (Puts on sunglasses)
Eddie Izzard wrote:And poetry! Poetry is a lot like music, only less notes and more words.
perakojot wrote:cream wobbly wrote:inserting non-files into a filesystem is a strange and unique concept -- a hack.
/dev/*
/proc/*
/sys/*
project2051 wrote:I keep my porn on the desktop.. I can't waste time clicking through folders to get to it.
frezik wrote:Anti-photons move at the speed of dark
DemonDeluxe wrote:Paying to have laws written that allow you to do what you want, is a lot cheaper than paying off the judge every time you want to get away with something shady.
cjmcjmcjmcjm wrote:project2051 wrote:I keep my porn on the desktop.. I can't waste time clicking through folders to get to it.
I keep mine in folders, depending on subject type
Linus Torvalds wrote:Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it
tetsujin wrote:("folder" may actually be a better abstraction than "directory" to describe a point in a directory hierarchy - but I always thought of it as a Windows-ism.)
dantman wrote:Exüberance wrote:I'm not sure about other shells. I'm actually kind of surprised that * doesn't escape - characters when it expands. Would be a pretty easy fix I would think
EDIT: Trying to delete the "-r" file doesn't work even when wrapped in single quotes. o.O Wuuhhhhh? I can delete it graphically through nautilus though. Weird.
Maybe * DOES escape the character properly, but rm for some reason interprets it as a flag? Most peculiar
To a program -r '-r' and "-r" are all the same, no matter what you use the program gets the string '-r' there is no concept of named arguments in the shell, only a list of strings to pass to a program, so the program is the one that handles the parsing of arguments. Hence since it gets -r any amount of shell level escaping is futile.
You can use -- to separate args from filenames when using rm, so `rm -- '-r'` will delete the file "-r".
Jeyekomon wrote:I saw mainly some Linux-related discussion here, so.. Any ideas how to create that directory loop in windows?
Of course it will be difficult imo, but.. Is that even possible?
idisjunction wrote:Relevant external links:
Directory of C:\recursive\folder\is\recursive\folder\is\recursive\folder\is\rec
ursive\folder\is\recursive\folder\is\recursive\folder\is\recursive\folder\is\rec
ursive\folder\is\recursive\folder\is\recursive\folder\is\recursive\folder\is\rec
ursive\folder\is
11/25/2011 02:36 PM <DIR> .
11/25/2011 02:36 PM <DIR> ..
11/25/2011 02:36 PM <JUNCTION> recursive
0 File(s) 0 bytes
Directory of C:\recursive\folder\is\recursive\folder\is\recursive\folder\is\rec
ursive\folder\is\recursive\folder\is\recursive\folder\is\recursive\folder\is\rec
ursive\folder\is\recursive\folder\is\recursive\folder\is\recursive\folder\is\rec
ursive\folder\is\recursive
11/25/2011 02:36 PM <DIR> .
11/25/2011 02:36 PM <DIR> ..
11/25/2011 02:36 PM <DIR> folder
0 File(s) 0 bytes
Total Files Listed:
0 File(s) 0 bytes
111 Dir(s) 5,995,327,488 bytes free
C:\recursive>--- fs/namei.c.bak 2011-11-26 18:41:08.000000000 +0100
+++ fs/namei.c 2011-11-26 18:43:40.000000000 +0100
@@ -2908,8 +2908,6 @@
return -EPERM;
if (!dir->i_op->link)
return -EPERM;
- if (S_ISDIR(inode->i_mode))
- return -EPERM;
error = security_inode_link(old_dentry, dir, new_dentry);
if (error)
ormaaj wrote:Yes, on Windows there are hardlinks, symlinks, and shortcuts - 3 different categories. I'm sure most people are unaware of anything but shortcuts as IIRC you can't create them using the file explorer.
StClair wrote:(Of course, on some level I'm aware that they're just infinitesimal bits of iron oxide on a hard-disk platter... but there are necessary and unnecessary levels of abstraction, and I cling to the belief that most symbolic links are the latter.)
perakojot wrote:cream wobbly wrote:inserting non-files into a filesystem is a strange and unique concept -- a hack.
/dev/*
/proc/*
/sys/*
SpringLoaded12 wrote:You're like a modern-day Holden Caulfield, except that no one would read a book about you.
engr wrote:Desktop - My Computer - C - Windows - Desktop - My Computer - C - .....
At least that's how it was on Windows 98, I think.
12/17/2011 03:55 AM <JUNCTION> hereMrkva wrote:Patch for Linux 3.1.2 (works at least on ext4). But be careful with that
- Code: Select all
--- fs/namei.c.bak 2011-11-26 18:41:08.000000000 +0100
+++ fs/namei.c 2011-11-26 18:43:40.000000000 +0100
@@ -2908,8 +2908,6 @@
return -EPERM;
if (!dir->i_op->link)
return -EPERM;
- if (S_ISDIR(inode->i_mode))
- return -EPERM;
error = security_inode_link(old_dentry, dir, new_dentry);
if (error)
Return to Individual XKCD Comic Threads
Users browsing this forum: Bing [Bot], Eoink, funnyav, jowo, Lardy Plans, mscha, RogueLeader and 21 guests