Slashdot Mirror


Vista To Get Symlinks?

TheRealSlimShady writes "According to a post by Ward Ralston on the Windows server team's weblog, Vista server is to get symlinks as part of the SMB2 protocol." From the post: "In Vista/Longhorn server, the file system (NTFS) will start supporting a new filesystem object (examples of existing filesystem objects are files, folders etc.). This new object is a symbolic link. Think of a symbolic link as a pointer to another file system object (it can be a file, folder, shortcut or another symbolic link)."

565 comments

  1. Duplication... by Erik_the_Awful · · Score: 5, Insightful

    ...is a compliment of the highest form.

    1. Re:Duplication... by thatshortkid · · Score: 2, Funny

      wow. so the editors must really love every 3rd article, huh?

      --
      The IRS is the one organization that you don't want to fuck with. Remember, these are the guys who took down Al Capone.
    2. Re:Duplication... by jallen02 · · Score: 2

      And to add to the humor you are duplicating a theme that will get at least one hundred and eleventy one mod points today.

    3. Re:Duplication... by Anonymous Coward · · Score: 0

      I guess that's why my copy of Windows says: "No unauthorized compliments allowed".

    4. Re:Duplication... by booch · · Score: 1

      You'll note that copying a copycat doesn't work nearly as well as copying the original.

      --
      Software sucks. Open Source sucks less.
    5. Re:Duplication... by Lxy · · Score: 2, Funny

      So Slashdot doesn't post dupes, they post compliments?

      --

      There is no reasonable defense against an idiot with an agenda
      :wq
  2. Yet more great by Skiron · · Score: 5, Funny

    innovation from MS.

    1. Re:Yet more great by Anonymous Coward · · Score: 5, Funny

      Yea, they better hurry up and patent it before those unix hippies copy it.

    2. Re:Yet more great by tpgp · · Score: 2, Informative

      Its too late....

      Five years to late

      --
      My pics.
    3. Re:Yet more great by kd3bj · · Score: 5, Funny

      What's next?

      Forward slashes?

      Text files without ^m's?

    4. Re:Yet more great by Anonymous Coward · · Score: 5, Funny

      all your symbolic links are belong to SCO

    5. Re:Yet more great by trezor · · Score: 2, Funny

      Now that would be demanding a little bit much in so short time, wouldn't it?

      We will have to wait at least until the avarage workstation has 30GHz dualcore CPUs and at least 10GBs of ram.

      --
      Not Buzzword 2.0 compliant. Please speak english.
    6. Re:Yet more great by perdelucena · · Score: 3, Funny

      What else can we expect from MS, maybe tabs on IE? Oh wait...

    7. Re:Yet more great by kuzb · · Score: 1

      When did they call it innovating? It occurs to me that the only people who call symlinks in vista an innovation are the trolls on slashdot.

      --
      BeauHD. Worst editor since kdawson.
    8. Re:Yet more great by octaene · · Score: 1

      Wow, the next thing you know, Microsoft will have one of them internets on there or something. Cool!

    9. Re:Yet more great by Haydn+Fenton · · Score: 1

      Not that I'm sticking up for MS, especially on slashdot, but I don't think MS are claiming they've come up with something new. I haven't used many OSs thay have had symlinks but they do seem pretty useful. Isn't there some OSS symlink code MS can use? I know people will complain either way, but I think I'd prefer MS using code thats been through bugs and exploits and come out more secure, than MS writing their own, brand new, buggy version of a good feature. Imagine the new exploits that could be made against windows when people can open files or directories they don't shouldn't have access to, or new viruses that find files on the desktop, for example, delete or move the original file and replace it with a symlink with the same name and same icon, but linking it to a piece of spyware or a trojan. I guess the same thing can already be done with shortcut files really, but it might just ring some new bells in a virus writers head.

    10. Re:Yet more great by Citizen+of+Earth · · Score: 1

      Yea, they better hurry up and patent it before those unix hippies copy it.

      No, they want those Unix hippies to copy it so they will have to pay royalties to the Microsoft patent on symbolic links that will be granted in a few months.

    11. Re:Yet more great by Myria · · Score: 1

      Windows NT already allows forward slashes in the Win32 API. CreateFileW translates them to backslashes automatically before calling NtCreateFile.

      Melissa

      --
      "Screw Sun, cross-platform will never work. Let's move on and steal the Java language." - Visual J++ Product Manager
    12. Re:Yet more great by Anonymous Coward · · Score: 0

      Wow, Windows is getting symbolic links??? Woo-Hoo! Welcome to the 70's baby! Another 30 years maybe they will add structured filesystems and shadowed passwords (which they will invent)

    13. Re:Yet more great by Anonymous Coward · · Score: 0

      Nice innovation on the comment, too. Are these replies already autogenerated? If not, they ought to be. That'd save some time. And remember to auto-mod them to either +5 funny or insightful.

    14. Re:Yet more great by Anonymous Coward · · Score: 0
      Let me get this straight. They either...

      1. Don't add it, and are terrible for not having it.
      2. Do add it, and are terrible for taking a page from UNIX's design book?

      Right. Don't forget to use a dollar sign when you say "M$"

    15. Re:Yet more great by MaXiMiUS · · Score: 0
      --
      It's never just a game when you're winning. - George Carlin
    16. Re:Yet more great by NetRAVEN5000 · · Score: 1
      No wonder they're starting to buddy up to open-source projects!

      MS is probably still trying to figure out how to do the "^W" thing and make everyone think they invented it.

      Maybe they'll invent the first journalized filesystem one day, too!

    17. Re:Yet more great by NetRAVEN5000 · · Score: 1
      "Now that would be demanding a little bit much in so short time, wouldn't it?

      We will have to wait at least until the avarage workstation has 30GHz dualcore CPUs and at least 10GBs of ram."

      Don't forget that it'll require SLI because DirectX 13.0 will require it just to render the "Start" button.

      Of course, MS will still put some stupid thing so that even with your new super-fast processor and your SLI technology, your OpenGL games will have trouble. Because it only makes sense that they should have trouble just because you made a new GUI.

    18. Re:Yet more great by killjoe · · Score: 1

      " What else can we expect from MS, maybe tabs on IE? Oh wait..."

      Look at Visual studio. Finally after two years of waiting VS developers get refactoring, a build system, decent version control, and an integrated javadoc like system. Now that they have almost caught up to eclipse they can wait another two years while the rest of the field runs away from them.

      --
      evil is as evil does
    19. Re:Yet more great by ConceptJunkie · · Score: 1

      and yet half of all MS developers are still using VS6. I know all the Windows clients I work for still use it. The MS compiler might be a lot better now, but I haven't heard much good about the IDE.

      More bloat and hassle, just like everything else MS does.

      --
      You are in a maze of twisty little passages, all alike.
  3. Innovation! by Anonymous Coward · · Score: 0, Funny

    ..and people say MS isn't innovative!

    1. Re:Innovation! by Anonymous Coward · · Score: 0

      ...and people say MS isn't innovative!

  4. Symbolic links? by el_womble · · Score: 3, Funny

    What a fantastic idea! Why didn't you UNIX guys think of that whilst you were eating ambrosia up in your ivory tower eh? ... Oh...

    Microsoft 'innovating' once again, and giving the people what the want (10 years after everyone else). Go Redmond!

    --
    Scared of flying, pointy things snce 1979!
    1. Re:Symbolic links? by m4dm4n · · Score: 5, Insightful

      I don't believe that the word innovate was used anywhere except here on slashdot. While it's been a long time coming, the blog entry that originally posted this admits that all these additions are addressing limitations in SMB.

      It's not like Linux never copied an idea from another OS, yet it seems MS is not allowed to add a feature unless they thought of it themselves.

      But then I guess everyone here gets a bit bitter when there is one less thing to complain about MS.

    2. Re:Symbolic links? by ben_rh · · Score: 3, Insightful

      It's actually closer to 40 years.. but yeah :)

    3. Re:Symbolic links? by ben_rh · · Score: 2, Insightful

      I think you're right to an extent, but the innovation comments are intended to be more general.

      The density of the word 'innovation' in things MS say is directly proportional to how scared they are of the thing they're talking about.

    4. Re:Symbolic links? by Shulai · · Score: 1

      The matter isn't MS using existent features from other systems, but the fact they do it a very long time after the feature showed up for the first time, sometimes very long time after power users want that feature (preemptive multitasking and a decent filesystem comes to mind), yet most people won't realise all of this but take it as novel ideas.

    5. Re:Symbolic links? by Anonymous Coward · · Score: 2, Insightful

      Microsoft are the ones always harping on about innovation, we like to take these opportunities to remind people that most things comming out of Redmond (other than the foul stench of bullshit) were copied or acquired. Microsoft couldn't innovate it's way out of a paper bag, they are a bad joke and have even coined their own punchline. Now that's what I call innovation!

    6. Re:Symbolic links? by giorgiofr · · Score: 1

      And that is "most people"'s fault, not MS's.
      Seriously, what are they supposed to do? Stop developing and not provide said features *at all*? Wouldn't that be worse than providing the features later than other, more agile, systems do?
      So the power users want features - guess what, they can use a system that offers them. Guess some more, many power-user features are available in Windows too but people just don't want to RTFM so they don't find out about them.

      --
      Global warming is a cube.
    7. Re:Symbolic links? by richie2000 · · Score: 2, Insightful
      Seriously, what are they supposed to do?

      Stop using the slogan "Freedom to innovate". Seriously. They have no right to use it -- they are against freedom and they do not innovate.

      --
      Money for nothing, pix for free
    8. Re:Symbolic links? by l3v1 · · Score: 1

      yet it seems MS is not allowed to add a feature unless they thought of it themselves

      This is what we (the others, you know) call being mindless jerk. Thing is, normally wouldn't matter what or when they add to their software. But their usual routine is to add some feature and raise hell over to prove they did it first and everybody else is just a bunch of loosers. On top of that, the "innovation" word is not something we just use for fun. If you look around you'll see MS is probably the company who uses that word most frequently. No wonder, they get you symlinks in 2005. Call me when the Windows installer will finally be able to mount local/remote volumes, read additional drivers from other sources than A: and when they'll allow me to use any filesystem I want [to install Windows on], when explorer will support scp/sftp, when plugging in a new hard disk won't require reboot.

      --
      I am putting myself to the fullest possible use, which is all I can think that any conscious entity can ever hope to do.
    9. Re:Symbolic links? by b100dian · · Score: 5, Informative

      NTFS already had symlinks. Just that Explorer and cmd.exe didn't used the feature. But if created (with a third party tool) they are properly used.
      Also, FAT had initially a flag indicating that an object is not a file, nor a folder, but a symlink. Unfortunately, the attribute got later used as a "Long Filename Part no. X" flag... talk about bad design..

      --
      gtkaml.org
    10. Re:Symbolic links? by PunkOfLinux · · Score: 1

      As much as I hate to admit it, parts of your argument can be refuted.

      If you have the driver on a CD you CAN install from it. There ARE ways of getting addition FS support, but not for installation. And WHY would add a hard disk while the computer's ON?

    11. Re:Symbolic links? by coolsva · · Score: 1

      NTFS 5.0 and on always had this feature and more. It is a pity people use FAT32 which doesnt support any of these features like reparse points, junctions and more http://msdn.microsoft.com/library/default.asp?url= /library/en-us/fileio/fs/reparse_points.asp

    12. Re:Symbolic links? by zootm · · Score: 1

      Thing is, normally wouldn't matter what or when they add to their software. But their usual routine is to add some feature and raise hell over to prove they did it first and everybody else is just a bunch of loosers.

      I think it's more that the tech guys will add a feature, then the marketing guys will yell about it to high heaven. Thinking about MS as one entity leads to confusion, I find, and undue hatred. I expect that Linux, with marketing guys, would be no better.

    13. Re:Symbolic links? by Argon · · Score: 1

      > It's not like Linux never copied an idea from another OS, yet it
      > seems MS is not allowed to add a feature unless they thought of it
      > themselves.

      Who's stopping MS from adding the feature? My complaint is not that MS copied the idea, but that they took so long to do it.

    14. Re:Symbolic links? by S.O.B. · · Score: 1
      And WHY would add a hard disk while the computer's ON?

      One reason would be to add a hard disk to a server that must be up 24/7.

      For a non-24/7 server it's easier and cheaper to add a hard disk to a server during normal working hours while it is in use rather than at 4:00am on Sunday morning during a regularly scheduled maintenance window.
      --
      Some of what I say is fact, some is conjecture, the rest I'm just blowing out my ass...you guess.
    15. Re:Symbolic links? by Anonymous Coward · · Score: 3, Informative

      "Microsoft 'innovating' once again" - by el_womble (779715) on Monday October 31, @06:41AM

      And, more "F.U.D." attempts by the 'pro-Unix/Linux/BSD' brothers @ "/.", as-per-usual... or, the usual "partially informed/incomplete data spouting rumor mill" is @ work here again, as-per-usual.

      Take a read, so you are better informed:

      http://www.sysinternals.com/Utilities/Junction.htm l

      -----

      Win2K's version of NTFS supports directory symbolic links, where a directory serves as a symbolic link to another directory on the computer.

      For example, if the directory D:\SYMLINK specified C:\WINNT\SYSTEM32 as its target, then an application accessing D:\SYMLINK\DRIVERS would in reality be accessing C:\WINNT\SYSTEM32\DRIVERS.

      Directory symbolic links are known as NTFS junctions in Win2K.

      Unfortunately, Win2K comes with no tools for creating junctions - you have to purchase the Win2K Resource Kit, which comes the linkd program for creating junctions.

      I therefore decided to write my own junction-creating tool: Junction.

      Junction not only allows you to create NTFS junctions, it allows you to see if files or directories are actually reparse points.

      Reparse points are the mechanism on which NTFS junctions are based, and they are used by Win2K's Remote Storage Service (RSS), as well as volume mount points.

      If you want to view reparse information, the usage for Junction is the following:

      Usage: junction [-s]
      -s
      Recurse subdirectories.

      If you want to create or delete a junction, use Junction like this:

      Usage: junction [-d] []

      To delete a junction specify the -d switch and the junction name.

      -----

      (NT's been there, & done that, ages ago already for DIRECTORY SYMBOLIC LINKS @ least... + the resource kit tools mentioned above, OR the tools offered by Dr. Russinovich & Bryce Cogswell @ SysInternals do the job in this matter as well as alternate methods of using what's already been in NTFS for ages now)

      APK

      P.S.=> "and giving the people what the want (10 years after everyone else). Go Redmond!" - by el_womble (779715) on Monday October 31, @06:41AM

      They surely have, now, haven't they & for the last 12 years or more @ desktop/laptop levels up to Server OS + backoffice/industrial strength tools to match their Office Suite offerings + development tools?

      So, with that statement of yours, I must agree:

      Plus, 95%++ of the world's computers running Windows NT-based Operating Systems by now (e.g.-> NT/2000/XP/Server 2003), which run tons more hardwares than UNIX of any type does, + with more peripheral surrounding softwares for any imaginable purpose (thus, Win32 Os are far more ubiquitous + flexible) can't be TOO far wrong to second your statement now, can they? apk

    16. Re:Symbolic links? by Anonymous Coward · · Score: 0

      You might remember back around 2k's launch when microsoft used the word "innovation" in their "look! We added symlinks to NTFS!" marketing. In fact, I think they called them virtual junction points or some bullshit like that to make it less obvious that they were "innovating" something that existed in just about every competitor's product for a long time.

    17. Re:Symbolic links? by Trelane · · Score: 2, Informative
      Symlinks or hard links?

      There is a huge difference between the two: a hard link is filesystem-level (simply a second entry in a directory to a file); a symlink is OS-level. One cannot cross filesystem boundaries (being filesystem-level), the other can.

      --

      --
      Given enough personal experience, all stereotypes are shallow.
    18. Re:Symbolic links? by Anonymous Coward · · Score: 0
      Microsoft are the ones always harping on about innovation, we like to take these opportunities to remind people that most things comming out of Redmond (other than the foul stench of bullshit) were copied or acquired.

      The people that care about this kind of thing already know, and the people that don't know don't really care. This has nothing to do with reminding anyone of anything and is just another opportunity to take a slap at Microsoft.

    19. Re:Symbolic links? by SonicBurst · · Score: 3, Informative

      I don't know where you got your info from, but plugging in a hotswap disk does NOT require a reboot, and hasn't since at least Windows 2000, but probably even NT 4. Open computer management, go to disk configuration, and click "rescan disks". It'll detect the drive just fine.

      --

      Geek used to be a four letter word. Now it's a six-figure one.
    20. Re:Symbolic links? by masklinn · · Score: 3, Informative

      Windows 2k and above have both hardlinks (which are available via standard tools) as well as symlinks, restricted to directories only and not available via the OS' tools.

      Check Juctions for the creation and handling of symlinks.

      --
      "The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler
    21. Re:Symbolic links? by aichpvee · · Score: 2, Insightful

      I think they originally meant that slogan to be a comparison to windows. You know, more along the lines of "Freedom to innovate OR use microsoft products."

      --
      The Farewell Tour II
    22. Re:Symbolic links? by masklinn · · Score: 1
      And WHY would add a hard disk while the computer's ON?

      Either because it's a server that must run 24/7, or because you're lasy enough to not want to waste the time of a reboot.

      --
      "The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler
    23. Re:Symbolic links? by Trelane · · Score: 1
      Schweet. Good for Windows users!

      Now, if only they'd release the specs for NTFS so that the Linux devs could get us 100% NTFS-compatible, the dual-booters would be so happy!

      --

      --
      Given enough personal experience, all stereotypes are shallow.
    24. Re:Symbolic links? by deKernel · · Score: 0

      The one fact you forgot to add that makes MS's current implementation poor is that the link becomes a drive letter, and how many in total can you have with Windows?

      Take a guess how many symlinks I have on my current ArchLinux system?

    25. Re:Symbolic links? by Anonymous Coward · · Score: 0

      It's not like Linux never copied an idea from another OS, yet it seems MS is not allowed to add a feature unless they thought of it themselves.

      Don't you mean 'bought' of it themselves?
    26. Re:Symbolic links? by masklinn · · Score: 2, Informative
      The one fact you forgot to add that makes MS's current implementation poor is that the link becomes a drive letter, and how many in total can you have with Windows?

      That would be really funny if it was true.

      It is, alas, false, and junctions do not become "a drive letter", they are virtual folders akin to Linux' directory symlinks (since junctions sadly don't handle the file level but only the directory one).

      --
      "The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler
    27. Re:Symbolic links? by Anonymous Coward · · Score: 0

      But then I guess everyone here gets a bit bitter when there is one less thing to complain about MS.

      Oh you poor fool. There's no reason to be bitter.

      Subtracting one from an infinite number still leaves plenty to complain about.

    28. Re:Symbolic links? by ObsessiveMathsFreak · · Score: 1

      I don't know where you got your info from, but plugging in a hotswap disk does NOT require a reboot....

      Now if only they'd extend this paradigm to installing software.

      --
      May the Maths Be with you!
    29. Re:Symbolic links? by JesseMcDonald · · Score: 1
      Now if only they'd extend this paradigm to installing software.

      They can't fix that until they fix the way that file locking works. Reboots are required because Windows locks not only the contents of in-use executable files, but their directory entries as well, which means that they cannot be replaced, deleted, or moved while the program or DLL is in use. New files that replace existing executables and DLLs can only be installed after a reboot, when the files are no longer in use; there is a script that runs on startup which performs this function every time new software is installed.

      --
      "The state is that great fiction by which everyone tries to live at the expense of everyone else." - Bastiat
    30. Re:Symbolic links? by robertjw · · Score: 1, Insightful

      Win2K's version of NTFS supports directory symbolic links, where a directory serves as a symbolic link to another directory on the computer.

      How can it be considered a symbolic link if you can only link directories??

      Unfortunately, Win2K comes with no tools for creating junctions

      What good is a feature you can't use. That's just ridiculous.

      Plus, 95%++ of the world's computers running Windows NT-based Operating Systems by now (e.g.-> NT/2000/XP/Server 2003)

      Down from 99% 5 years ago

      which run tons more hardwares than UNIX of any type does,

      BS, very few pieces of PC hardware are completely unsupported by Linux. Plus, Linux has a much bigger foothold in the embedded market than Windows.

      + with more peripheral surrounding softwares for any imaginable purpose (thus, Win32 Os are far more ubiquitous + flexible)

      'More peripheral surrounding software' is a very difficult statement to prove. There is more commercial windows software than Unix, but there are thousands, maybe millions of open source apps covering nearly ever imaginable purpose available and most of them are built for Linux.

    31. Re:Symbolic links? by Eil · · Score: 1


      It's not like Linux never copied an idea from another OS, yet it seems MS is not allowed to add a feature unless they thought of it themselves.

      I don't complain so much that Microsoft is taking ideas from Unix or other operating systems, but rather that they took so bloody long to finally copy the essential stuff like symlinks and a real command line.

    32. Re:Symbolic links? by Anonymous Coward · · Score: 0

      what

    33. Re:Symbolic links? by MaskedSlacker · · Score: 1

      You miss the point. Its not that they copied the feature. That is fine. The problem is that they always claim to be innovative, when they are not.

    34. Re:Symbolic links? by Daytona955i · · Score: 1

      Unfortunately, Win2K comes with no tools for creating junctions - you have to purchase the Win2K Resource Kit, which comes the linkd program for creating junctions.

      So it comes with a feature that 99% of their users can't use? Wow... that's great.

      (NT's been there, & done that, ages ago already for DIRECTORY SYMBOLIC LINKS @ least... + the resource kit tools mentioned above, OR the tools offered by Dr. Russinovich & Bryce Cogswell @ SysInternals do the job in this matter as well as alternate methods of using what's already been in NTFS for ages now)

      Once could also argue that symlinks had been around for ages when NTFS was a new filesystem. And I mean real symlinks, not directory-only symlinks.

    35. Re:Symbolic links? by MaskedSlacker · · Score: 1

      I refuse to read the ramblings of a man who interchanges words and punctuation marks so freely. Its like an even more retarded form of leet speak.

    36. Re:Symbolic links? by Grrreat · · Score: 1

      You can create symlinks to files using cygwin's ln.exe, after they are created they work fine outside of cygwin. I have used it with Oracle tnsnames.ora files in different folders.

    37. Re:Symbolic links? by TheMadPenguin · · Score: 1

      I think the reason everyone jumps on MS for "innovations" such as this and not the Linux community is due to the fact that we're talking about a multi-BILLION dollar corporation who happens to be raking in the dollars shamelessly for these innovations and usually calls them as such. There's no mistaking that. Nobody wants to hear that their ideas have been taken by a monopoly and is going to be touted as an "all new feature". That's just bullshit.

      --
      Linux with kernel panic...
      MadPenguin.org
    38. Re:Symbolic links? by ediron2 · · Score: 1

      Copying isn't the issue. We're not saying they *can't* copy. We're mocking Microsoft for exhibiting lameness and copycat tendencies, just like IBM used to get painted with that brush. Nobody says they're 'not allowed to add a feature'. It's just absurd that they're only now figuring out that symlinks might be useful, despite having 43 BILLION dollars in the bank.

      Oh, and if Linus ever becomes a billionaire, we'll gladly start mocking him when he exhibits lameness. Let's call that Ediron's corolary to the 'new golden rule': If we don't have the gold, at least we can mock the rich.

    39. Re:Symbolic links? by tdubya · · Score: 1

      You'll gladly start mocking Linus? Looks like he beat you to the punch... http://lkml.org/lkml/2005/8/20/95

      --
      I read /.! I like seeing how misinformed, short sighted, and downright stupid some people are.
    40. Re:Symbolic links? by Anonymous Coward · · Score: 0
      Speaking of that foul stench from redmond...
      The people that care about this kind of thing already know, and the people that don't know don't really care. This has nothing to do with reminding anyone of anything and is just another opportunity to take a slap at Microsoft.

      Oh, boo-fucking-hoo. If I were working in PR and saw how many people on /. are calling MS on their innovation line, I'd probably attempt to dismiss it like you did.

      Microsoft have never been innovative and they have brought all the criticism on themselves. Cynically contrived attempts to appear innovative at all costs are doomed, especially when the big innovations are copied (stolen, I believe Gates would say?) from competitors.

    41. Re:Symbolic links? by mallardtheduck · · Score: 2, Informative

      95%++ of the world's computers running Windows NT-based Operating Systems by now

      Actually, 95% of the world's computers are embedded microproccessors, most of which don't even run anything classified as an "operating system", let alone windows. I expect that what you meant was that 95% of PC's are running Windows NT based operating systems. I doubt that, there are still plenty of older, pre-XP home machines in use today, so probably as many as 15-20% of PC's are running Windows 9x-based operating systems. You could have just said 95% of the world's PC's are running Win32-based operating systems, and you probably would have been correct.

    42. Re:Symbolic links? by ediron2 · · Score: 1

      Heh, my point exactly... doesn't matter if you're lucky enough to be famous or rich, you're never exempt from ridicule. Best strategy is to remain down-to-earth. As an überRich example, Warren Buffett seems to understand this rule.

      Class reveals itself in how we respond to extreme circumstances.

    43. Re:Symbolic links? by ediron2 · · Score: 1

      Oh, and $258M pursuing a cure for malaria is a credit to Bill Gates. Saw that headline a few mins after posting my previous remark, and for all of Microsoft's evil tendencies (and I don't intentionally exagerate by saying 'evil'), the Gates Foundation merits respect.

    44. Re:Symbolic links? by I'm+Don+Giovanni · · Score: 1

      "Who's stopping MS from adding the feature? My complaint is not that MS copied the idea, but that they took so long to do it."

      But you'd rather they didn't add it at all, is that it? The fact is that whenever Microsoft adds some unix-like feature, it's one less thing for you guys to trash Windows about, and that stings like a bitch!! LOL
      Admit it, you'd rather have Windows suck than be good. Windows improvements scare the anti-MS crowd to death.

      --
      -- "I never gave these stories much credence." - HAL 9000
    45. Re:Symbolic links? by NetRAVEN5000 · · Score: 1
      "It's not like Linux never copied an idea from another OS"

      No, but we don't claim "Hey, Linux is better" and then five years later claim "Hey, Linux has (insert feature here), and it's a big deal and everyone should care about it and think we're gods, even though it's been available for 5 years in other OSes".

      It's not a new feature. It's new to Windows users, but it's not new at all as far as other OSes go. Neither is journalized filesystem support, which is something MS still doesn't have support for. Neither is the idea of a 3d-accelerated GUI, which is something MS put in Vista with some extra code to make OpenGL not work.

      Sure, maybe Linux copied some features from other OSes. But it didn't take us five years to do it.

    46. Re:Symbolic links? by Anonymous Coward · · Score: 0

      I don't work anywhere near Redmond, dickcheese. And to be quite honest, I'm probably not smart enough to get in the front door. I do know bullshit when I smell it, though, and there is plenty in here.

      Once again, the only people who care about this kind of thing already know Microsoft didn't have it first. And MS didn't claim it was an innovation in the first place. So suck it.

    47. Re:Symbolic links? by abdulla · · Score: 1

      What's with all the MS-defenders lately? Have chairs been flying through your windows?

    48. Re:Symbolic links? by Anonymous Coward · · Score: 0

      MaskedSlacker you're a loser.

    49. Re:Symbolic links? by Anonymous Coward · · Score: 0

      "How can it be considered a symbolic link if you can only link directories??" - by robertjw (728654) on Monday October 31, @11:59AM

      Ask Dr. Russinovich @ System Internals (www.sysinternals.com), he is often willing to respond by email to questions.

      "What good is a feature you can't use. That's just ridiculous." - by robertjw (728654) on Monday October 31, @11:59AM

      You can use it, and the quote from the sysinternals page notes that, read closer - you can use Dr. Russinovich's tool, or the ones the Windows NT/2000 Reskit provides.

      "BS, very few pieces of PC hardware are completely unsupported by Linux. Plus, Linux has a much bigger foothold in the embedded market than Windows." - by robertjw (728654) on Monday October 31, @11:59AM

      Linux does NOT = UNIX first of all... So, by the way, note AGAIN, that above? I said UNIX...

      (BUT, I too, have always considered Linux a UNIX knock-off/clone though also, apparently you do as well... but, it's not the "traditional variety" of UNIX e.g.-> Stuff from BellLabs, BSD, HPUX, IBM AIX, SCO UNIX(Xenix) or Sun Solaris UNIX by any means)

      Above all? Linux doesn't nearly hold the market share that Windows does, not even CLOSE & MOST OF ALL??

      Linux still doesn't support as much hardware as Windows does, or as well, point-blank!

      "'More peripheral surrounding software' is a very difficult statement to prove. There is more commercial windows software than Unix" - by robertjw (728654) on Monday October 31, @11:59AM

      Absolutely.

      "but there are thousands, maybe millions of open source apps covering nearly ever imaginable purpose available and most of them are built for Linux." - by robertjw (728654) on Monday October 31, @11:59AM

      LOL! And, there isn't the SAME for Windows?? Wake up man, check out the freeware/shareware circuit sometime for Win32 and then tell us that.

      (Linux UNIX by the way, & at best it's a clone/knock off)

      APK

      P.S.=> How the HELL you got modded up 2 for your statement is astounding, because it's SO full of errors (+1 was probably for "karma", useless b.s. period anyhow, so how you got a +1 is astounding in & of itself via moderation)... apk

    50. Re:Symbolic links? by Argon · · Score: 1

      > But you'd rather they didn't add it at all, is that it?
      > The fact is that whenever Microsoft adds some unix-like
      > feature, it's one less thing for you guys to trash
      > Windows about, and that stings like a bitch!! LOL

      Hmm, are you sure you're jumping on the right guy? I prefer Linux but I am happy when Microsoft adds Unix like features because I need to work with Windows platforms at work. I am happy if Microsoft introduces a powerful new shell (monad) instead of the crappy cmd.exe. I am happy Microsoft is adding NFS in Windows 2003 Server. It makes my life a bit more simpler.

      What's there to be scared about Microsoft copying Unix features? If some thing does scare the "anti-MS crowd", it has to be new innovations not easily available in Unix. Personally I'd be happy if Microsoft copied Unix features sooner. And if Microsoft innovates I'd be happy if Unix/Linux copied them sooner.

  5. Re:Ah yes by Octorian · · Score: 1

    I'm not sure a shortcut would count, since shortcuts are not application-transparent in the same way as symlinks.

  6. Allow me to be the first to say... by Noryungi · · Score: 5, Funny

    Welcome to the 1980s, Microsoft.

    (Who was it who said: 'Those who don't know UNIX are condemned to recreate it. Badly.' ?)

    --
    The right to offend is far more important than the right not to be offended. (Rowan Atkinson)
    1. Re:Allow me to be the first to say... by Anonymous Coward · · Score: 0, Funny

      Who was it who said: 'Those who don't know UNIX are condemned to recreate it. Badly.' ?)

      I know what you mean. Linux certainly is a recreation of UNIX, and a bad one at that.

    2. Re:Allow me to be the first to say... by rolfwind · · Score: 3, Insightful

      I'm sure that's what those Plan9 folks are thinking of the Linux/BSD camp^_^

    3. Re:Allow me to be the first to say... by BladeMelbourne · · Score: 1

      GNU Linux "is not Unix". Recursive acronyms are hard for BSD users to understand.

      Go and create symlinks to your shortcuts, and shortcuts to your symlinks - until you can't tell the difference without ls.

    4. Re:Allow me to be the first to say... by WWWWolf · · Score: 5, Informative
      (Who was it who said: 'Those who don't know UNIX are condemned to recreate it. Badly.' ?)

      $ fortune -m 'condemned'
      ...

      Those who do not understand Unix are condemned to reinvent it, poorly. -- Henry Spencer

      And those who don't understand fortune(1) are condemned to ask about quotes =)

    5. Re:Allow me to be the first to say... by DeBeuk · · Score: 1

      Dennis Richie

      HTH

      --
      Reality has a notoriously liberal bias -- Stephen Colbert
    6. Re:Allow me to be the first to say... by geminidomino · · Score: 1

      "Linux" isn't an acronym, and anyway, that has absolutely fsckall to do with anything. Are you actually convinced symlinks are a linux invention, or do you just like taking advantage of any opportunity to parrot some inane GNU marching motto while taking weak shots at BSD users?

    7. Re:Allow me to be the first to say... by PakProtector · · Score: 1
      GNU Linux "is not Unix". Recursive acronyms are hard for BSD users to understand.

      Go and create symlinks to your shortcuts, and shortcuts to your symlinks - until you can't tell the difference without ls.

      We'd be more than happy to if you would bother to learn the correct implementation of our Socket Distribution you're shamelessly ripping off.

      Dammit, you idiots, select() shall not modify my time_val!

      --

      Edward@Tomato - /home/Edward/ man woman
      man: no entry for woman in the manual.
      "Qua!?"

    8. Re:Allow me to be the first to say... by Anonymous Coward · · Score: 0

      Symbolic links were not invented on Unix, and certainly
      not in the 1980s. ITS had them in the 1960s, before Unix
      came along.

    9. Re:Allow me to be the first to say... by leomekenkamp · · Score: 1

      I am sure that Microsoft over the years has had much, much more money to spend on Windows than the linux camp had on linux.

      That after all those years Microsoft still has drive letters with a dirty hack (my desktop / my computer /whatever) to 'unify' them, has only broken symlink functionality (shortcuts), and only now mentiones symlinks is quite pathetic, if you ask me.

      But I am sure you could make the same kind of argument on linux vs. plan9 :-).

      --
      Wenn ist das Nunstueck git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput.
    10. Re:Allow me to be the first to say... by zaguar · · Score: 1

      "A witty saying proves nothing" - Voltaire

      --
      "Sure there's porn and piracy on the Web but there's probably a downside too."
    11. Re:Allow me to be the first to say... by samjam · · Score: 1

      I want select() to monidy my timeval.

      horses

      Sam

    12. Re:Allow me to be the first to say... by PakProtector · · Score: 1

      It does not conform to the standard. I thought you Zealots were supposed to be Zealous for Standards?

      --

      Edward@Tomato - /home/Edward/ man woman
      man: no entry for woman in the manual.
      "Qua!?"

    13. Re:Allow me to be the first to say... by samjam · · Score: 1

      you zealots??

      hahahahhaaa! Is there is only one band of zealots these days?

      What is this "you zelaots" group you are including me with?

      Would this be the KDE Zealots or the Gnome Zealots. (Of course, I mean the progressive GPL KDE Zealots, not the Fundamentalist QPL Zealots, who probably mispronounce the pronunciation of SQL with it's precursor SEQL on purpose)

      Or do you mean the MSSQL Zealots, or the MySQL Zealots (the purist MySQL Zealots, that is, who think MySQL AB are tainted because they did a deal with SCO branch), or the SQLITE zealots?

      Or the BASH Zealots, or the ZSH Zealots?

      Or maybe you mean the pro-Gnome-SQLITE fellowship-with-special-forgiveness-for-Amarok-cos -it's-so-cool-even-if-it-is-KDE Zealots?

      In case you didn't know I'm one of the short-term-pragmaticist show-me-the-time-left-when-you-call-select Zealots, and I like to see how much time was left when a select call returns. It's not like I write code that can't remember what value it called select with, should it even to know.

      If you think "slashdot readers" are a composite person then also realise that the composite person is shizophrenic, and also realise that you are one of it's brain cells. Otherwise try not to over-cluster your perception of slashdot readership and then blame invidivual posters who fall outside one of the dimensions of your clustering.

      Sam

    14. Re:Allow me to be the first to say... by Anonymous Coward · · Score: 1, Insightful

      A witty saying proves nothing, but saying something pointless gets
      people's attention.

    15. Re:Allow me to be the first to say... by mrogers · · Score: 5, Insightful
      That after all those years Microsoft still has drive letters with a dirty hack (my desktop / my computer /whatever) to 'unify' them, has only broken symlink functionality (shortcuts), and only now mentiones symlinks is quite pathetic, if you ask me.

      Backward compatibility is absolutely indispensable for Microsoft - the only reason it's still the market leader after all the lawsuits, bad publicity and downright talented competition of the last few years is because nobody wants to break compatibility with their existing software, documents, networks and hardware. Microsoft understands this, and while I'm sure it drives a lot of MS developers insane, backward compatibility is always given top priority, even if it makes the architecture horribly ugly and illogical.

      (If you want to see the Unix equivalent, read the chapter on terminal I/O in Stevens' Advanced Programming for the UNIX Environment. There are backward compatibility hacks in there that are so ugly you'll wish you'd been born blind.)

    16. Re:Allow me to be the first to say... by masklinn · · Score: 0, Offtopic
      That quote pales in comparison to Philip Greenspun's
      Any sufficiently complicated C or Fortran program contains an ad hoc informally-specified bug-ridden slow implementation of half of Common Lisp.
      --
      "The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler
    17. Re:Allow me to be the first to say... by PakProtector · · Score: 1

      I'm the "I get pissed off when my BSD code is used and then altered so as to stop perfectly fine software from running without having to change my select()" zealot brain cell. Read the man page for select() on your Linux Box sometimes, and note that the problems both when Linux code which reads timeout is ported to other operating systems, and when code is ported to Linux that reuses a struct timeval for multiple selects in a loop without reinitializing it. part. If you use the same man files as my mate's box does.

      It is not part of the select() standard. It may be a good idea, but it's not the way it was written, and if you can remember the time when the select() was called, why can't you just compare it to the time when the select() returns, and save us all a bunch of trouble since you're going to have to do a comparison anyway, but I don't need to?

      --

      Edward@Tomato - /home/Edward/ man woman
      man: no entry for woman in the manual.
      "Qua!?"

    18. Re:Allow me to be the first to say... by leomekenkamp · · Score: 1

      It would have been trivially simple to implement an all inclusive filesystem, like '/' in unix; it could even have been done in the DOS days. In fact: it had already been done with UNC paths. Or you could simply define a drive letter that does not exist and put the drives under that root-drive as subdirs.

      Deprecating support for the old naming scheme could be similar to the FCB/filehandle deprecation. Backward compatibility should not be used as an excuse in this case imho.

      --
      Wenn ist das Nunstueck git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput.
    19. Re:Allow me to be the first to say... by samjam · · Score: 1

      I guessed you were when you jumped on me for expressing my preference in return; but thats what you get when you share the source. Folk change it.

      I read "the linux" ("the" linux?, kernel 2.4, glibc 2.3.2) man page before my last post:

      I've also been well aquainted with this portability issue since reading "man perlfunc" a long time ago, it's just one of a bunch of porting issues and the least of my worries for this reason:

      None of my core OS, main packages or dependancies has stayed stable for much more than six months; yes I get lovely new useful apps and features all the time, the lifetime of many given ways of doing things is short aspecially at the desktop.gui end of things. For me, the select timeout issues are just something that is taking a little longer to be "progressed", but its a small enough problem that I can keep it in my head.

      You may question the use of "progressed", I don't mind, but I there is some value at least in a philosophy of "what ought the standard to be" and not just "what was it 10 years ago". Yes, I know the cost, but I like the benefits of a new "standard" from time to time, and this decade more are being made.

      As I said, horses, I meant "horses for courses", or "each to his own"

      Sam

    20. Re:Allow me to be the first to say... by JourneymanMereel · · Score: 1
      And those who don't understand fortune(1) are condemned to ask about quotes =)

      Who was it that said that?
      --
      Life has many choices. Eternity has two. What's yours?
    21. Re:Allow me to be the first to say... by Urusai · · Score: 1

      You can always put a deprecable compatibility shim in between your elite new code and the horrible old kludgey system.

      However, note that UNIX is trapped using C/C++ for most things for BACKWARD COMPATIBILITY REASONS.

    22. Re:Allow me to be the first to say... by anothy · · Score: 1

      heh. he just used linux as an example of "a philosophy of "what ought the standard to be" and not just "what was it 10 years ago"." that's great! mod parent +1 Funny!

      --

      i speak for myself and those who like what i say.
    23. Re:Allow me to be the first to say... by kokoloko · · Score: 1

      (Who was it who said: 'Those who don't know UNIX are condemned to recreate it. Badly.' ?)

      Everybody else in this thread, maybe?

    24. Re:Allow me to be the first to say... by ckaminski · · Score: 1


      However, note that UNIX is trapped using C/C++ for most things for BACKWARD COMPATIBILITY REASONS.
      </quote>

      Um, and what'all does that have to do with anything? Unix could be 100% reimplemented in Java, and fairly transparently, at that. LibC is the only thing that would need changing, except perhaps some very specialized kernel tools.

      That's not the same thing as adding a feature like drive letters to Unix, while still maintaining the flat namespace.

    25. Re:Allow me to be the first to say... by fatcatman · · Score: 1

      Who was it that said that?

      Apparently, a close relative of porky pig.

      (the parent has a stuttering problem; look at his name. Get it? Bah, nevermind...)

    26. Re:Allow me to be the first to say... by iabervon · · Score: 1

      Except, of course, that they've yet to release two versions of the OS that are actually compatible with each other. Try writing a shell script which changes the current directory and drive to the script's location and works on more than one version of Windows. It's possible, but only by ignoring syntax errors from commands that didn't work.

    27. Re:Allow me to be the first to say... by samjam · · Score: 1

      ouch....

      you BSD zealots got me good.. agggh
      final thought: dang, which BSD zealots were they... and thats GNU/Linux to you... Mr GNU/Linux

    28. Re:Allow me to be the first to say... by WWWWolf · · Score: 1

      Absolutely no idea, probably some BSD guy in mid-1990s. Who am I to advertise some ages-old software? And I'm not exactly known to be widely quoted anyway, better not start with such an awful quote. =)

      Some on-topic stuff though: I sure hope the supposed Vista symlinks work the way Unix symlinks work; NT world already seems to have several incompatible and not-quite-good-and-working ways of achieving this and one more would just cause confusion. NT definitely needs to borrow more Unixisms, particularly on filesystem side. (NT filesystem isn't done until rm -rf / in Cygwin really deletes everything =)

    29. Re:Allow me to be the first to say... by Beyond_GoodandEvil · · Score: 1

      You mean like how BrowseForFolder stopped being able to return files in Shell.dll 5.0? God, that was a pain in the ass.

      --
      I laughed at the weak who considered themselves good because they lacked claws.
    30. Re:Allow me to be the first to say... by anothy · · Score: 1

      BSD zealot? not hardly. if you need to dump me into a Unix camp, call me a v10 Research Unix zealot. but really, you should probably call me a Plan 9 zealot. both BSD and Linux are just ever-progressing incremental improvements (in most cases, anyway) to what's been there for a decade or two. but whereas the BSD communities mostly (not entirely, but mostly) just sort of get on with things, the GNU/Linux (it's mostly the GNU influence here, but there's so much overlap it's hard to tell them apart most times) communities talk about "innovation" and their grand philosophy of how things "ought to be" or "ought to have been".

      please. you're re-implementing a unixoid system based more-or-less on 20-30 year old work and POSIX, an international standard. there's plenty of new ideas floating around, but not only does it mostly not come from the Linux camps, they're also slow to adapt/adopt. why is Linux just now getting things like 9P and private namespaces? the benefits have been shown widely in academic and research circles for a decade now (first Plan 9 papers talking about them came out in 1989; publicly-available system w/ source code available... 1993, i think). why is Sun of all places (god, aren't they dead yet?) the folks coming up with great things like dtrace and getting better filesystems into their kernels? you're bound to point out that the FOSS BSD folks didn't come up with those, either, and have been just as slow to adopt them; you're correct, but that's fine: the BSD folks admit their goals. OpenBSD wants to be the most secure Unix ever, and they do a damn good job. there's not a ton of system innovation going on there, but they get down to business and get the job done. those code audits aren't sexy or "innovative", but i'm sure glad they do them. FreeBSD wants to be fast; NetBSD wants to be portable. they understand their goals and they get down to it.

      while you're doing what you're doing - re-implementing a unixoid system - you should be trying to do the best job at that possible. and by that standard, your select implementation is just broken. if you really think the behavior is that much of an improvement, put a wrapper around it or stick in one of those ifdefs you people are so fond of (there's already a bazillion, what's one more, right?). but there is a correct way to do select; do that.

      there's nothing wrong with incremental improvements, stable systems, predictable results, and so on. quite the opposite: they're great things. but they're not the same things as innovation, invention, or research. admit which you're doing, and get on with that.

      or call me when HURD is worth another look.

      --

      i speak for myself and those who like what i say.
    31. Re:Allow me to be the first to say... by samjam · · Score: 1

      Here we go for another round of put-me-in-a-camp and then blame-me-for-not-fitting.

      I'm not sure I disagree with your first statement or see any fault in the behaviour you describe.

      Yes, (we) are re-implementing a unixoid system and yes (we) are making things how we think they ought to be. Why is Linux just NOW getting stuff? Cos thats where (we) have got to! If you think private namespaces should have been added before numa smp and various other goodies where the various other developers and funders disagree with you, you were free to add it yourself. *cough*. Linux is a work-in-progress, its strange to ask why something wasn't done before when the answer is obviously "because something else was being done." I didn't point out what "I was bound to." I don't care very much who came up with the good ideas. Good for the BSD crowd who you think are acheiving their goals. I have no comment to make on those goals. I'm doing it for fun and wages.

      I really think someone mis-understood my comment about select. I've not sponsored any broken-select conventions or paid anyone or envourage anyone to implement a broken select. I merely see the linux select and dare to say I like it that way. In response you tell describe the job I'm involved in and then tell me how badly I'm doing at it.

      I will tell you what I'm NOT doing, and that is: looking for your approval. I don't care if what I do, or what people you lump in with me do, makes sense to you or seems rational. It suits me and I'm doing it for me and people who appreciate it.

      And to be honest what (we) should do with select even according to your directive depends on the interpretation of 'oid' in 'unixoid'

      A clean wrapper around select is very hard to write, any time maths done after the inner select returns could be bogus; resulting in negative times, or incorrect times because "at that time" there was data to read. In the kernel is the proper way to do such time-maths atomically. Let libc, or "the wrapper" go the other way and just replace the old time value.

      Now you've told me what the Linux folk are doing wrong, I'll tell you why BSD isn't as big as Linux, cos the history of BSD is littered with bitching and whinging and flames which is all a waste of time. Linux is as big as it is because the BSD folk are sticking with BSD. Linux is a termite mound made out of lego. BSD is a termite mound made out of ivory. I happen to think lego is more fun.

      I have high respect for *BSD but I find the response to my mild preference interesting.

      Sam

  7. OMG by Mateito · · Score: 2, Funny

    This is a joke, right?

    1. Re:OMG by islev · · Score: 1

      Yes, of couse it's a joke. And the punch line goes last: "Note symbolic links are an NTFS feature."

      Usually, as if this was 'invented' by microsoft ..

  8. Obligatory quote by OscarBlock · · Score: 3, Funny

    Those who don't understand UNIX are doomed to reinvent it, poorly." --Henry Spencer

    1. Re:Obligatory quote by zaguar · · Score: 1, Funny

      "A witty saying proves nothing" - Volaire

      --
      "Sure there's porn and piracy on the Web but there's probably a downside too."
    2. Re:Obligatory quote by waamaral · · Score: 1

      This means Volaire proves nothing either.

      --
      What, do I need a sig now?
    3. Re:Obligatory quote by Breakfast+Pants · · Score: 1

      This statement is false.

      --

      --

      WHO ATE MY BREAKFAST PANTS?
    4. Re:Obligatory quote by EnderWiggin99 · · Score: 1
      This statement is false.


      Yes, we know the parent was correct. Thank you for your recursive contribution.
    5. Re:Obligatory quote by ediron2 · · Score: 1

      A witty statement plus yet-another-example-in-a-long-line has nothing to do with voltaire, but merely reinforces Microsoft's reputation of being an IP-stealing wannabe.

      Admittedly, mine doesn't sing like voltaire. But I found this thread by greppin' for 'doomed' before I quoted Henry Spencer myself, so GP isn't the only slashdotter that sees some truth in Spencer's 'doomed to recreate it' saying. I've been a fan of the saying since 'The Unix-Hater's Handbook'.

  9. Different than shortcuts by 246o1 · · Score: 5, Informative
    From TFA, before it gets slashdotted and someone asks:
    Well, a shortcut will only work when used from within the Windows shell, it is a construct of the shell, and other apps don't understand short-cuts. To other apps, short-cuts look just like a file. With symbolic links, this concept is taken and is implemented within the file system. Apps when they open a symbolic link will now open the target by default (i.e. what the link points to), unless they explicitly ask for the symbolic link itself to be opened.
    --
    Although the moon is smaller than the earth, it is farther away.
    1. Re:Different than shortcuts by Anonymous Coward · · Score: 0

      Thanks for the clarification. Very informative, thanks again.

    2. Re:Different than shortcuts by fbjon · · Score: 1

      I wonder, how do I open a symlink in *nix then, without getting the target instead?

      --
      True confidence comes not from realising you are as good as your peers, but that your peers are as bad as you are.
    3. Re:Different than shortcuts by quantum+bit · · Score: 2, Informative

      OPEN(2) FreeBSD System Calls Manual OPEN(2)

      NAME
                open -- open or create a file for reading or writing

      LIBRARY
                Standard C Library (libc, -lc)

      SYNOPSIS
                #include <fcntl.h>

                int
                open(const char *path, int flags, ...);

                The flags specified are formed by or'ing the following values
                            O_NOFOLLOW do not follow symlinks

    4. Re:Different than shortcuts by bcmm · · Score: 1

      I honestly fail to understand the concept of "opening a symlink". It's a link. How can you open it?

      --
      # cat /dev/mem | strings | grep -i llama
      Damn, my RAM is full of llamas.
    5. Re:Different than shortcuts by interiot · · Score: 2, Insightful
      Say you have a 1000-byte file called MyDocument1.doc.vistalnk on your desktop. It points to the real MyDocument1.doc somewhere else on your system.

      If you open the file up in XP, Word will be very confused, and if anything, display the 1000-byte gibberish. In Vista, Word (and Outlook, and everything else) will automatically do the right thing, and read the contents of MyDocument1.doc without having to change any code in Word/Outlook/etc.

      Since it's aan automatic part of the operating system, all previous and all future programs will support it. Whereas in XP, only a few small things like the executable launcher try to undrestand .lnk files.

    6. Re:Different than shortcuts by Otter · · Score: 1
      Say you have a 1000-byte file called MyDocument1.doc.vistalnk on your desktop. It points to the real MyDocument1.doc somewhere else on your system.
      If you open the file up in XP, Word will be very confused...

      I'm no Windows guru, but I do that all the time in XP, with no problem. (I do, don't I? Checking it ... yeah, of course it works.) The only application I can recall that doesn't follow through "shortcuts" correctly is (brace yourself!) Lotus Freaking Notes. Everything else deals correctly with them, and I'm sure I'd have noticed if they didn't since Notes' misbehavior drives me absolutely nuts.

      Like I said, I know nothing about Windows and therefore can't debate the subject, except to report what I see.

    7. Re:Different than shortcuts by Anonymous Coward · · Score: 0

      Try to attach a document to an email message in Outlook using the shortcut. I get users calling me from time to time wondering why their recipient can't open the document they sent. Lo and behold, every time it's because they sent the shortcut file instead of the actual file.

    8. Re:Different than shortcuts by HydrusZ · · Score: 1

      Well no, actually Word, Notepad, Firefox, and any program that uses the common dialog API already handles .lnk files correctly. The only way to actually view the shortcut itself in most cases is to drag and drop it.

    9. Re:Different than shortcuts by bcmm · · Score: 1

      I probably didn't explain myself very clearly. I mean that I don't understand how one could open a symlink rather than open it's target, or what that means, or why you would want to.

      --
      # cat /dev/mem | strings | grep -i llama
      Damn, my RAM is full of llamas.
    10. Re:Different than shortcuts by interiot · · Score: 1
      Shoot, I should have tested it first. Right, double-clicking on a .lnk actually brings up the target.

      Okay, a different example. In vista, you'll be able to move c:\windows\win.ini somewhere else, and replace the original with a symbolic link.

  10. "Virtual folders", I believe it's used for by Sockatume · · Score: 5, Informative

    Some of the Vista previews have shown off things dubbed "virtual folders" which work in a similar way to browsing by artist or album in the current version of Media Player. You can manipulate the files like it's a normal folder window, yet the actual files may be scattered over different folders and drives. Presumably it's an effort to make managing large amounts of music/video outside of Media Player easier. They almost certainly use these symbolic links. They're a bit different from shortcuts.

    --
    No kidding!!! What do you say at this point?
    1. Re:"Virtual folders", I believe it's used for by Hakubi_Washu · · Score: 4, Informative

      Nope, those virtual folders are actually search-parameters saved in a xml-format, which is known already. Paul gets them wrong or at least gives a shitty explanation (he says these xml files store the results, but that wouldn't be dynamic as he claims as well), instead you click 'em and the search is fired up using the stored parameters, e.g. *.mp3

    2. Re:"Virtual folders", I believe it's used for by Sockatume · · Score: 1

      Ah, I guess I credited the OS with more consistency than I should have. That's a lot less impressive, yet using these symlink things seems such an obvious solution to me. :/

      --
      No kidding!!! What do you say at this point?
    3. Re:"Virtual folders", I believe it's used for by Hakubi_Washu · · Score: 1

      I think symlinks are grafted onto the existing system as an afterthought, probably because some coders and admins at MS requested them (TFA mentions them being in Vista server). I would certainly prefer a more low-level approach to virtual folders as well, but WFS is cancelled for Vista :-P

    4. Re:"Virtual folders", I believe it's used for by ajs318 · · Score: 1

      Virtual folders - hmm. Is this a bit like what Konqueror does when you type audiocd:/ in the address bar with a music CD in the drive, and it shows you a bunch of directories apparently containing the tracks in .wav, .mp3 and .ogg formats {and possibly more, if additional codecs are installed} ?

      --
      Je fume. Tu fumes. Nous fûmes!
    5. Re:"Virtual folders", I believe it's used for by thesman · · Score: 1

      We can see both (links and "Virtual Folders", known as Smart Folders) on Mac OS X Tiger.

    6. Re:"Virtual folders", I believe it's used for by Hakubi_Washu · · Score: 1

      In a way, only in that case the files (.ogg, .wav, etc) are virtual as well (until you open or copy them, at which point they're created on the fly, AFAIK).

      A better way to imagine them is the windows-search in XP, which already displays the results as if they were in one folder (you can mark, copy, etc. them exactly the same, only you can't paste into it, naturally). Now think if you had a "folder" (which is really a file containing your search terms) that upon opening would automatically execute the search and display the result. Depending on the criteria implemented you could have a virtual folder containing all *.mp3 files ony your system, all files over 100Mb, any file that contains the string "copyright" or whatever search terms and combination you can come up with.

  11. Security risk? by fm2503 · · Score: 5, Interesting

    From TFA:

    "Now why is this relevant to the SMB2 protocol? This is because, for symbolic links to behave correctly, they should be interpreted on the client side of a file sharing protocol (otherwise this can lead to security holes). "

    Is it not rather:

    "If the client does not interpret symbolic links then nothing will work?"

    1. Re:Security risk? by Anonymous Coward · · Score: 0

      The folder scanners pretty loops will crunch your HDD.

    2. Re:Security risk? by IWannaBeAnAC · · Score: 4, Interesting
      Presumably the security problem has something to do with symlinks that point to a file that the client does not have permission to read. If the server handles symlinks in a naive way, then on a request to open() a symlink it would open the target file (which is the usual behaviour of opening a symlink), but potentially with the wrong permissions.

      If the server did no special behaviour for symlinks then they would appear to the client as a duplicate of the symlink target, an ordinary file.

    3. Re:Security risk? by steve_l · · Score: 1

      I think it may also be related to network performance.

      recall that on NFS, symlinks are interpreted client side. so a server side link like //machine1/home/steve/files -> //machine2/files
      would be handed to the client that would then go to machine2 to get the files.

      when you hit linux with samba, symlinks are handled securely, but the //machine2/files link is (I believe) resolved with the rights of the samba share running. So the link is resolved, the file is opened as the same user who mounted the share, But the data goes from machine2 to machine1 and then back to the client, which is very inefficient.

    4. Re:Security risk? by Jaborandy · · Score: 1

      Nobody understands this.

      Let me try to explain why server-side symlink evaluation is a potential security risk.
      Most people think it is because the link might point to something the user cannot access. This is not true. ACL checking would still take place on the server, and no security violation would occur. The problem is that something could be made accessible remotely when it was not intended to be accessible remotely. For example something which is world readable, but which is not shared.

      Making any arbitrary user with a shared folder able to put a symlink in his directory that allows him to get at non-shared files, is a security risk. The analogy is to a web server checking to make sure a relative path references something within its document root. It's a lot of work to make that check on the server, and it can make the use of a symlink feel broken, making users annoyed. The best behavior, with the least risk of bugs, is to do the symlink evaluation on the client in a remote FS. This is why they extended SMB to support symlinks as well.

      Looking at my analogy, note that in general in http a reference to embedded content is evaluated by the client and results in a request to the server for the other file. There have never been any problems with this approach. In some extensions of http servers, such as CGI, people were able to include and access files from outside the server root, violating server security. There have been a lot of problems with this, and they have been fixed by repeated patches to the server-side security code. It's a hard problem to get fixed right, and the best choice is to design such that security is simple and self-enforcing. MS is taking the smart path here.

      --Jaborandy

    5. Re:Security risk? by sjames · · Score: 1

      If the server did no special behaviour for symlinks then they would appear to the client as a duplicate of the symlink target, an ordinary file.

      Actually, security 'just works' only if the server does nothing special at all with symlinks. A symlink is just a special file whose contents is just the name of a file it links to. Supose you have /home/user/myfile as a symbolic link to /restricted/files/thisone. Client tries to open /home/user/myfile (as user), gets the symbolic link, so it reads that and gets a path to the linked object (/restricted/files/thisone), so it tries to open /restricted/files/thisone. To the server, there's nothing special about (user) trying to open /restricted/files/thisone at all. It just checks permissions normally.

      In other words, the permissions on a softlink apply to seeing or changing what it links to, they have nothing to do with permissions on the object it points to.

    6. Re:Security risk? by IWannaBeAnAC · · Score: 1
      Not really. The point is, for a file server the permissions for sharing a file may be different to the permissions for a local user.

      For example, on Unix machines the password file /etc/passwd is world readable (although on modern machines it doesn't actually contain passwords anymore). But usually you would not want to export /etc/passwd (eg it would let attacker know all of the login names which would help a lot in a dictionary attack on the passwords). But if the file sharing protocol doesn't know about symlinks, then a user would be able to put a symlink to /etc/passwd in a shared folder and make the passwd file remotely readable.

      This gets even more complex if /restricted/files/thisone is itself an exported file from some other (secured) host. In that case, the correct way to assess permissions for random user to access /home/user/symlink is whether the secure host would allow access from the clients machine. Otherwise you have the effect of a tunnel from the secure host to the outside world...

    7. Re:Security risk? by sjames · · Score: 1

      If I am silly enough to share / the symlink trick still works if the server has seperate permissions for shared files (Unix doesn't do that without special arrangements involving a hacked userspace nfsd and perhaps xattrs). Client reads symlink, sees that it points to /etc/passwd. Client asks for /etc/passwd, and server says no because it is somehow marked no-export.

      If you want to have server A mount /etc from server B, and A re-exports to clients, you get what you deserve unless you also create a re-export permission for the file (and modify the OS to support it).

      In that case, the symlink isn't the security problem, re-exporting sensitive files is the problem. Consider, in this case, what happens if client directly asks A for /etc/passwd?

      So long as the server does absolutely no special processing for symlinks, they will grant no access that isn't already granted. In the /etc/passwd example, if you wisely don't export (share) /etc/passwd, exporting a symlink to it will not make it accessab le to a client. The client will just perform 2 transactions ending in permission denied rather than one. More likely, the client will read the symlink and the access it's own local copy of /etc/passwd locally (which is normally permitted).

      If a filesystem were implemented where permissions were stored in a dirent rather than the inode, hard links might have the security implications you point out. That's why permissions are stored in the inode and not the dirent.

    8. Re:Security risk? by IWannaBeAnAC · · Score: 1
      So long as the server does absolutely no special processing for symlinks, they will grant no access that isn't already granted. In the /etc/passwd example, if you wisely don't export (share) /etc/passwd, exporting a symlink to it will not make it accessab le to a client. The client will just perform 2 transactions ending in permission denied rather than one. More likely, the client will read the symlink and the access it's own local copy of /etc/passwd locally (which is normally permitted).

      How could this be? If the server does no special processing for a symlink, then its actions on getting a request for that file would be 1: open() it, 2: read() it, 3: send it down the wire. The behaviour of open() on a symlink is to open the file pointed to by the symlink!

    9. Re:Security risk? by sjames · · Score: 1

      How could this be? If the server does no special processing for a symlink, then its actions on getting a request for that file would be 1: open() it, 2: read() it, 3: send it down the wire. The behaviour of open() on a symlink is to open the file pointed to by the symlink!

      Automaticly following a symlink is for the user (client) side of the VFS. In any event, when a symlink is followed, the target object is accessed with the same credentials as the symlink was.

      Try this: as an unprivileged user in your home directory, do ln -s /etc/shadow. Then ls -l shadow (you'll see that it's world read/writable). Now, do less shadow.

  12. NTFS already does it since Win2K ! by Anonymous Coward · · Score: 5, Informative

    See here :

    http://www.sysinternals.com/Utilities/Junction.htm l

    Any feature new in Vista but the look and feel ? ;-)

    What about booting the OS with less than about 20 services started and 256MB of memory used ? :(

    1. Re:NTFS already does it since Win2K ! by soikoban · · Score: 3, Informative

      This was even posted on slashdot five years ago:
      http://slashdot.org/article.pl?sid=00/03/02/083321 1&tid=109
      The links in the summary are broken though.

    2. Re:NTFS already does it since Win2K ! by RoverDaddy · · Score: 3, Insightful

      Doesn't really matter if Win2K could do it if the feature was buried and the user had no way to use it. Also, Sys Internals seems to imply that only directories may be linked, not specific files. Not quite the same thing.
      I've been wishing Windows would support this elemental feature for a long time now. I would have used it to create a directory tree with the structure I wanted to burn on CD, without having to move all the actual files around. The CD burning software I've tried doesn't understand shortcuts either. Of course you can usually create the tree you want within the burning app. But then, you have to save it in their proprietary format, and some programs I've used manage to trash that info too.

      --
      RETURN without GOSUB in line 1050
    3. Re:NTFS already does it since Win2K ! by TummyX · · Score: 1

      Um I don't think so. You can only make directory junctions (not file ones).

    4. Re:NTFS already does it since Win2K ! by DarkEdgeX · · Score: 2, Informative

      If junctions only work on directories then you'd want to look at the CreateHardLink API (available in Win2K/XP/2003) which works only on files. You can create up to 1023 links to a single file using this API.

      --
      All I know about Bush is I had a good job when Clinton was president.
    5. Re:NTFS already does it since Win2K ! by TeXMaster · · Score: 5, Informative
      Junction points on NTFS are neither symlinks nor hardlinks: they are mountpoints for system volumes (partitions). Basically, they are the way NT deals with the Unix way of doing things (instead of the DOS way of assigning letters to volumes).

      NTFS does support hardlinks and, as the developers of the NTFS driver for Linux recently discovered (see details in this thread), it also supports symlinks, provided Microsoft Services For Unix are installed.

      The important part of all this, is, I think, that open source tools ranging from the linux fs drivers (ntfs and cifs/smb) to the cygwin stuff should get updated and start managing the thing the way MS does it (on MS filesystems, of course).

      --
      "I'm never quite so stupid as when I'm being smart" (Linus van Pelt)
    6. Re:NTFS already does it since Win2K ! by astrosmash · · Score: 4, Insightful

      Rumors about real symbolic links in Windows have been swirling since before Win2000.

      The problem with Junction.exe is that the Explorer shell and all other applications do not differentiate between links and real folders. That is, applications never expect two different paths to point to the same object, which makes Junctions much less useful in practice. For example, file search results take much longer to complete and display duplicate results. I believe that is why they initially limited Junctions to just directories.

      Now, if Vista got persistent file handles, that would be interesting.

      --
      ENDUT! HOCH HECH!
    7. Re:NTFS already does it since Win2K ! by masterfuol · · Score: 1

      I always thought of these as the equivalent of "hard links" not symbolic links. Apparently not.

    8. Re:NTFS already does it since Win2K ! by IWannaBeAnAC · · Score: 2, Informative
      Hard links are different to soft links (symlinks). Hard links are two (or more) files that refer to exactly the same physical storage; rather than one file being a link to the other file, both links are precisely equivalent. This is completely transparent - multiply-linked files are indistinguishable from singly-linked files.

      Soft links are represented as a special text file that contains the name of the linked file. The default behavior on opening a soft link is to redirect and open the target file instead. Alternatively, you can use readlink() to get the contents of the soft link directly.

      Unix has had both kinds of link for aeons.

    9. Re:NTFS already does it since Win2K ! by cuyler · · Score: 2, Insightful

      They aren't just mount points for volumes. You can mount a volume to multiple places with junctions. You can also use a junction to link C:\temp\directory to X:\anotherplace\asubdir\destination.

      The pain (or feature) with junctions is the source directory doesn't have to be empty. As a System Administrator in the Managed Storage group this can be an incredible pain. If the destination points to another drive you don't want to include it in the backups since things will get backed up twice (since the os would see C:\temp\directory as on the C:\ drive and on the X:\ drive) so the best way to handle that is exclude it from the C:\ drive backup. The problem with junctions is if there were files in C:\temp\directory before you linked it to the directory on the X:\ drive you will see a bunch of files - some on C:\ and some on the mount point.

    10. Re:NTFS already does it since Win2K ! by ajs318 · · Score: 1

      Those are hard links, which aren't the same thing as symbolic links.

      A hard link is when you have two directory entries which refers to the same file. In effect you have one file with two or more names. GDBM files are created this way; you have foo.pag and foo.dir which are hard links to each other. Obviously both files must exist within the same physical device, since they both resolve to a starting cylinder/head/sector position.

      A symbolic link is a directory entry which does not contain the usual cylinder/head/sector starting position. Instead it resolves to a pathname, which can refer to a file anywhere on any mounted file system {or even nowhere}. The pathname referred to must then be further resolved. This may take longer to resolve, but the file referred to need not be on the same physical device as the symlink itself.

      --
      Je fume. Tu fumes. Nous fûmes!
    11. Re:NTFS already does it since Win2K ! by basilpronoun · · Score: 1
    12. Re:NTFS already does it since Win2K ! by DarkEdgeX · · Score: 1

      My understanding of symlinks was that they were hardlinks, not softlinks (ala Shortcuts in Windows). E.g. - the filesystem driver ensures the integrity of symbolic links (hardlinks). OTOH, softlinks (and shortcuts again) are brittle in that if the target is moved, the softlink becomes invalid.

      --
      All I know about Bush is I had a good job when Clinton was president.
    13. Re:NTFS already does it since Win2K ! by lxs · · Score: 1

      Any feature new in Vista but the look and feel ?

      We live in hope. Perhaps they will put in a new startup noise. Has Brian Eno been spotted hiring a symphony orchestra to play a new one second symphony? Or will they hire Philip Glass this time? Hearing one chord repeated over and over while gazing at a Vista during the twenty minutes boot time would give the whole experience a nice Koyaanisqatsi feel.

    14. Re:NTFS already does it since Win2K ! by Anonymous Coward · · Score: 0

      You can get some nice shell extensions for making hardlinks and junctions here:

      wraith.techcore.org/shell/

      Shameless plug for a friend so I'm posting anon, but I use this mainly for shortening some very long paths. The other poster who replied to you saying that Junctions aren't exactly the same thing as links is right, but they suffice for the same usage for me.

    15. Re:NTFS already does it since Win2K ! by Nurgled · · Score: 3, Interesting

      Even more annoyingly, if you "delete" a junction point directory through the shell it will do a recursive delete just as it would for a folder, thus deleting all of the contents of the junction's target directory. If you set up the junction point then this is expected, but if it's someone else who isn't familiar with the concept they can easily mistake it for a bunch of duplicate files (since the shell displays them identically, and gives misleading disk usage information) and delete both copies.

    16. Re:NTFS already does it since Win2K ! by IWannaBeAnAC · · Score: 0, Redundant
      NAME
      symlink - make a new name for a file

      SYNOPSIS
      #include <unistd.h>

      int symlink(const char *oldpath, const char *newpath);

      DESCRIPTION
      symlink creates a symbolic link named newpath which contains the string oldpath.

      Symbolic links are interpreted at run-time as if the contents of the link had been substi-
      tuted into the path being followed to find a file or directory.

      Symbolic links may contain .. path components, which (if used at the start of the link)
      refer to the parent directories of that in which the link resides.

      A symbolic link (also known as a soft link) may point to an existing file or to a nonexis-
      tent one; the latter case is known as a dangling link.



      NAME
      link - make a new name for a file

      SYNOPSIS
      #include <unistd.h>

      int link(const char *oldpath, const char *newpath);

      DESCRIPTION
      link creates a new link (also known as a hard link) to an existing file.

      If newpath exists it will not be overwritten.

      This new name may be used exactly as the old one for any operation; both names refer to
      the same file (and so have the same permissions and ownership) and it is impossible to
      tell which name was the `original'.
    17. Re:NTFS already does it since Win2K ! by Anonymous Coward · · Score: 0

      I'd read the warnings about that the other day when I was playing with reparse points.
      I tried it though in this order:

      1) create junction to location with existing data
      2) make some new files from both locations (make sure they're pointing and updating, basically just experimenting)
      3) delete junction point that I created.

      I did the previous 3 steps a few times with the delete coming from explorer and the cmd line (explicitly specified recursive too). A normal user account and the admin account. My destination directory was never deleted. Maybe they updated the interpretations as I was running server 2k3.

      I'm not sure, maybe they fixed

    18. Re:NTFS already does it since Win2K ! by Anonymous Coward · · Score: 0

      The rumors weren't exactly wrong: symlinks were actually REMOVED from the product sometime around 1998. I guess they figured it would be too confusing? Anyway, it's been around for years but never surfaced in the shipping product until now because it's needed for better POSIX support in the Unix Services. Since it's now readily available as a feature, explicit support has been added for it to SMB.

      dom

    19. Re:NTFS already does it since Win2K ! by Anonymous Coward · · Score: 1, Interesting

      Junction points on NTFS are neither symlinks nor hardlinks: they are mountpoints for system volumes (partitions). Basically, they are the way NT deals with the Unix way of doing things (instead of the DOS way of assigning letters to volumes).

      You can very well use a junction to make a directory on one partition/filesystem appear as a directory on another filesystem, junctions are not restricted to mount only partitions/system volumes as folders in a filesystem.

      Junction.exe from sysinternal proved very useful when my oracle installation grew out of c:\oracle; I moved the entire c:\oracle to e:\programs\oracle and made c:\oracle a junction pointing to e:\programs\oracle. No mounting of entire partition involved. Works like a charm, nobody noticed any difference and all references to c:\oracle in registry or wherever they may exist are still valid.

    20. Re:NTFS already does it since Win2K ! by RhettLivingston · · Score: 2, Informative

      Junction points, at least the ones created by the utility referred to, are in fact hard directory links. You can mount any directory from any NTFS volume as a directory at any point in any NTFS volume's tree, not just whole partitions.

      I have used junction.exe many times to save a lot of reorganization by mounting a directory from one volume onto another when the other is full and there is no unallocated space to add. For example, you can move directories from "c:\Program Files" to "d:\Program Files" and then create junctions under "c:\program files" to the ones on d:. This will result in the associated programs running as if they had never been moved without any reinstallation.

  13. 29 years in the making by Anonymous Coward · · Score: 0

    It took microsoft 29 years to figure this out.

  14. No. by Virak · · Score: 5, Informative

    Shortcuts are just ordinary files that, when opened, open the location it points to. A symlink, however, allows you transparently access it as though it were the actual file/folder; "C:\Shortcut to porn\hot lesbian action.jpg" won't work, whereas "C:\Symlink to porn\hot lesbian action.jpg" will. See the Wikipedia entry, for more info.

    1. Re:No. by Professor_UNIX · · Score: 1, Funny

      Maybe someday they'll get really advanced and invent hard links too.

    2. Re:No. by nick8325 · · Score: 1, Informative

      Ha ha ha. Hilarious!

      http://msdn.microsoft.com/library/en-us/fileio/fs/ createhardlink.asp

      To be honest, I'm surprised it's only been there since Windows 2000.

    3. Re:No. by klubkid79 · · Score: 0

      This is slashdot bud, we write it like this.. /home/username/Symlink\ to\ porn/hot\ lesbian\ action.jpg

    4. Re:No. by Professor_UNIX · · Score: 1

      Woah, you got me there. If they created hard links I wonder why they never thought to create symbolic links until just now. There are tons of times that I found it would've been useful to move application directories off to another disk partition or even a network share without wading through the registry and maybe even proprietary application configuration files to change the drive letter.

    5. Re:No. by nick8325 · · Score: 2, Informative

      Well, there are reparse points (http://msdn.microsoft.com/library/en-us/fileio/fs /reparse_points.asp), which can act like symbolic links, but they only work on directories. There seems to be a program called Junction Link Magic here to make them.

    6. Re:No. by Anonymous Coward · · Score: 0

      > "C:\Symlink to porn\hot lesbian action.jpg" will. See the Wikipedia entry

      Liar. That wikipedia link shows me *nothing* about hot lesbian action.;-)

    7. Re:No. by masklinn · · Score: 1

      Symlinks do exist in W2k and above - only as directory symlinks though and not as file ones, but aren't available through standard tools.

      They're called Junctions, and Mark Russinovich from Sysinternals created a small util to handle them.

      --
      "The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler
    8. Re:No. by Anonymous Coward · · Score: 0

      OK, so how do I use this in My Computer or File Explorer? A C function to call in code is cool but if I can't use it in the default GUI, it's rather useless for the average user.

    9. Re:No. by Virak · · Score: 1

      Not on Windows.

    10. Re:No. by varith · · Score: 1

      Bzzzt!!! Sorry Prof, wrong answer. Hard links were there since NT 3.51 at least, maybe all the way back to NT 3.1. The only problem was that you could only access them through either the POSIX subsystem, or some special utility that would bypass the Win32 API and work directly with the NT kernel.

    11. Re:No. by Chubby_C · · Score: 1
      I'm dissappointed, I thought the wikipedia entry was for 'hot lesbian action' not symlinks

      shame on you...

      --
      - My question is: Can Slashdot be Slashdotted? -
    12. Re:No. by MightyMartian · · Score: 1

      If they're generally not accessible, then what's the difference. What percentage of the NT world ever actually used the Posix layer? I could never understand why symlinks weren't used instead of those busted and idiotic PIF-based abominations. Yay for Microsoft, now entering the 1970s with its file systems.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
  15. Re:Ah yes by strider44 · · Score: 4, Interesting

    Perhaps you should of read the article, especially the bit "how is this different from a shortcut?"

    The basis of it is that a shortcut is just a file - the exact same thing as a shortcut can be achieved by having a file with the target path just written in ascii inside, and assuming that the reader can tell it's a shortcut then it could get the target path sure, but if the reader is not equiped to specifically handle those shortcuts then it'll get muck.

    A symlink masquerades as the actual file or folder, and the app doesn't need any specific handling to read the file. You can for example go into bash and write "cd symlink/" and it'll go to that folder. A shortcut is just a file, a symlink is an attribute of the filesystem.

  16. Fantastic! by Anonymous Coward · · Score: 4, Funny

    Symbolic Link and SMB2 - should I also be waiting for ZeldaFS and MegaMon?

    1. Re:Fantastic! by BladeMelbourne · · Score: 1, Funny

      Duke Nukem Forever will run on Windows Vista - when the new DB filesystem becomes available.

  17. I had to check.... by kg4czo · · Score: 2, Funny

    the date to see if it was April 1st.

  18. This could break a lot programs by Anonymous Coward · · Score: 0

    I hope they're carefull, this could break lots of programs that recursively browse a filesystem without limiting the max depth. Anyway, it's a nice feature to have, I've been missing it.

    1. Re:This could break a lot programs by BladeMelbourne · · Score: 1

      That would be a fun VBScript to write and email to everyone I know who buys Vista as soon as it comes out! :-)

  19. NTFS already has symlinks, has done for years by Anonymous Coward · · Score: 4, Informative

    They are just not accesible from the shell. You need 3rd party utils to use them.. http://www.sysinternals.com/Utilities/Junction.htm l

    1. Re:NTFS already has symlinks, has done for years by Eil · · Score: 1


      No, junctions on NTFS are much closer to mount points on Unix rather than symlinks.

  20. New strapline? by seanellis · · Score: 3, Funny

    Vista - 1980's technology today^H^H^H^H^Hsometime next year.

    1. Re:New strapline? by $RANDOMLUSER · · Score: 1
      I understand that SP1 is to support the following:

      find / -noleaf -follow -type f -name "foo*.c" -exec grep -iH "crispy" {} \;
      --
      No folly is more costly than the folly of intolerant idealism. - Winston Churchill
  21. Server-side symbolic links? by Big+Nothing · · Score: 1

    "[...]for symbolic links to behave correctly, they should be interpreted on the client side of a file sharing protocol (otherwise this can lead to security holes)"

    So... they're implemented server-side in Vista then?

    --
    SIG: TAKE OFF EVERY 'CAPTAIN'!!
  22. Innovation? by ilitirit · · Score: 1

    What's with all this talk of innovation? Is the *nix crowd feeling threatened? From what I gather, symlinks were introduced with the SMB2 protocol, and nowhere in the article does it claim that Microsoft invented either of these technologies.

    1. Re:Innovation? by Anonymous Coward · · Score: 0

      You must be new here.

      Microsoft persistantly bring up innovation as if it somehow excuses their business practices (see DOJ Antitrust lawsuit), the reality is that everything they do is either copied or acquired from 3rd parties.

    2. Re:Innovation? by ilitirit · · Score: 1

      It's not that I'm new, it's that these "innovation" arguments are old. And sure, like many other companies out there, M$ has crappy business practices. But to bring it up whenever they make a technology announcement is, for the lack of a better word, lame.

      I'm not even sure why I'm bothering though because I'm pretty sure these words are going to fall on deaf ears.

  23. Funny thing is... by WindBourne · · Score: 5, Insightful

    that in about 2 years time, everybody will be running around saying that MS developed it, and that *nix copied it. Just the way it works.

    --
    I prefer the "u" in honour as it seems to be missing these days.
    1. Re:Funny thing is... by Keeper · · Score: 3, Funny

      No, in two years time everyone will be running around saying that MS copied it from Apple. Then someone else will jump in and say that Apple stole it from Unix. After that, someone else will claim that Apple stole it from Xerox. And I'm sure after further debate someone else will mention that it was originally an idea first postulated by the ancient greeks, before computers were even invented.

    2. Re:Funny thing is... by ozmanjusri · · Score: 2, Funny

      And I'm sure after further debate someone else will mention that it was originally an idea first postulated by the ancient greeks, before computers were even invented.

      Actually, I think you'll find the differential gear of the Antikythera mechanism http://en.wikipedia.org/wiki/Antikythera_mechanism could easily be construed as a symbolic link...

      --
      "I've got more toys than Teruhisa Kitahara."
    3. Re:Funny thing is... by cbreaker · · Score: 1

      A physical gear is hardly symbolic. It's more like just plain "link."

      --
      - It's not the Macs I hate. It's Digg users. -
    4. Re:Funny thing is... by robertjw · · Score: 1

      It's more like just plain "link."

      Actually that would be a 'hard link'.

    5. Re:Funny thing is... by Anonymous Coward · · Score: 1, Informative

      The really funny thing is that nobody seems to realise that they were in Multics before Unix was even a gleam in Dennis Thompson's eye.

    6. Re:Funny thing is... by linguae · · Score: 3, Funny

      Dennis Thompson? I didn't know that Dennis Ritchie and Ken Thompson fused and merged together back in the 60s to become ... Dennis Thompson.

    7. Re:Funny thing is... by Stephen+Samuel · · Score: 1
      Thompson and Ritchie worked on Multix. That's how Unix got started.

      It was intended to be a castrated version of Multix. Now Multix is dead, and it's Unixen spawn are all over the globe.

      --
      Free Software: Like love, it grows best when given away.
  24. We can only hope by n0dalus · · Score: 1, Informative

    Since Windows programs have not ever needed to check for the existence of symlinks, a lot of software will be a serious DoS waiting to happen. Recursive symlink traversal is one of the most devastating things a computer can do to itself. It can damage hard drives, crash software, take down servers and generally make the computer unusable. On UNIX, almost all software is aware of this pitfall and won't go crashing the computer.

    1. Re:We can only hope by Sockatume · · Score: 1

      Has some rather worrying implications for back compatability, doesn't it? You might have to go and buy your software again to make sure it doesn't try to eat itself. Wait a minute...

      --
      No kidding!!! What do you say at this point?
    2. Re:We can only hope by countach · · Score: 4, Informative

      Bullshit. Most unix software is not aware of symlinks because it doesn't have to be. Generally, only system utilities care about the existance of symlinks. The OS will detect an attempt to open an infinitely recursive symlink.

    3. Re:We can only hope by LLuthor · · Score: 1

      Just like on Unix based systems, open() can return ELOOP to indicate "Too many symbolic links were encountered" - Windows will have something similar.

      The Windows Vista PSDK is out, you can look it up now if you like.

      Symlinks have never posed a problem like you describe on any system I have encountered. With modern filesystems like reiser4, I only ever hit the disk two or three times a day on my laptop (everything I read/write is cached in my 2GB or RAM until the last possible moment).

      --
      LL
    4. Re:We can only hope by n0dalus · · Score: 0
      Any decent OS will detect an attempt to infinitely traverse a symlink, but what's it supposed to do?
      It can:
      • Close the program (= Possible data loss)
      • Slow the speed at which the program is allowed to access certain files (= Increase the chance of race conditions, sometimes by a lot. It doesn't really solve anything either)
      • Make the symlinks "disappear" after a certain level of recursion (= Inconsistent data)
      • Do nothing (= Solves nothing)
      None of these options are as good as the software actually detecting the symlinks itself. When I say "most" UNIX software checks for symlinks, I am only referring to software which would otherwise be at risk of infinite recursion.
    5. Re:We can only hope by countach · · Score: 2, Informative

      >Any de1cent OS will detect an attempt to infinitely traverse a symlink, but what's it
      >supposed to do?
      >It can:
      >
      > * Close the program (= Possible data loss)
      > * Slow the speed at which the program is allowed to access certain files (= Increase
      >the chance of race conditions, sometimes by a lot. It doesn't really solve anything
      >either)
      > * Make the symlinks "disappear" after a certain level of recursion (= Inconsistent data)
      > * Do nothing (= Solves nothing)

      WTF.....

      The answer is "none of the above". The open() call returns -1 with an error code of EMLINK, which if the program is any good will be passed onto the user as "Error opening file: Too many links", for the user to do with as he pleases.

      >None of these options are as good as the software actually detecting the symlinks itself.
      >When I say "most" UNIX software checks for symlinks, I am only referring to software
      >which would otherwise be at risk of infinite recursion.

      And what pray tell is the software supposed to do if it detects a symlink and/or a recursive one with special symlink handling code? All it can do is do report it to the user right? So why put in special code to do that? Just checking the return of open() and reporting the code to the user does the exact same thing.

    6. Re:We can only hope by Florian+Weimer · · Score: 2, Insightful

      Bullshit. Most unix software is not aware of symlinks because it doesn't have to be. Generally, only system utilities care about the existance of symlinks.

      I wonder if this attitude leads to all those race conditions when creating files in /tmp, which can be exploited by planting symlinks at the right time.

    7. Re:We can only hope by countach · · Score: 1

      >I wonder if this attitude leads to all those race conditions when creating files in /tmp, which can be exploited
      >by planting symlinks at the right time.

      Uh, nope. Sorry, no cigar. If you did manually check if it was a symlink, there would still be a race condition because it could be a symlink by the time you actually try to creat/open the file. Thus the race condition is not avoided by checking. Other solutions are needed.

    8. Re:We can only hope by Antique+Geekmeister · · Score: 1

      So will the disk usage tools like "du", the file-system probe commands like "find", and many other tools. They're also aware of hard-links and handle them correctly. Re-writing the hundreds of utilities for manipulting the file system, like all the "zip" variants, to deal with symlinks is going to be painful. And getting it integrated reliably into SMB file-sharing for Microsoft, and for the rest of us for Samba is going to be a nightmare from hell.

      Symlinks are dangerous: when you do a "cd symlink\.; cd .." in Windows, where are you going to wind up?

    9. Re:We can only hope by Anonymous Coward · · Score: 0

      Symlinks are dangerous: when you do a "cd symlink\.; cd .." in Windows, where are you going to wind up?

      Why don't you try that on Linux/Unix? ".." means nothing more nor less than "real parent of the current directory".

      Just because bash replaces ".." with "$CWD, minus the last one" for shell built-ins like "cd" doesn't mean it's proper to do so. Instead of "cd symlink/.; cd .." under your bash-befuddled thought process, why don't you try "cd symlink/.; ls .." and see what you get.

      But just try to convince the bash-boosters that replacing the real ".." with some concotion computed off of $CWD is a bug and not a "feature".....

    10. Re:We can only hope by cortana · · Score: 2, Informative
      Hmm...
      $ ln -s argh argh

      strace -e open cat argh
      open("argh", O_RDONLY|O_LARGEFILE) = -1 ELOOP (Too many levels of symbolic links)
      Honestly, there should be some kind of exam users should have to pass before they are allowed to post here.
    11. Re:We can only hope by Viol8 · · Score: 1

      Bet that seems a really good idea - until your laptop pegs out and
      you find all your work has disappeared into the ether. Far better to
      make sure the cache gets flushed frequently and put up with a very
      tiny slowdown , else you're just asking for trouble.

    12. Re:We can only hope by LLuthor · · Score: 1

      My laptop does not "peg out", nor have I ever lost data due to hardware problems.

      Reiser4 is already better at almost everything (when it finally hits the disk, the latency is higher than some other filesystems).

      Granted, my workflow is very different from a "normal" user, but it works amazingly well for me. Reiser4 has saves me literally hours everyday when working with huge numbers of small files. A task for which I used Berkeley DB in the past. Not only is reiser4 more than twice as fast, it rarely touches the disk. It does use a bit more space though.

      --
      LL
    13. Re:We can only hope by Viol8 · · Score: 1

      "My laptop does not "peg out", nor have I ever lost data due to hardware problems"

      Famous last words. What makes you so special that you're immune from
      hardware/software failures? It might not have happened yet but it'll
      happen to you one day and when it does remember , I told you so.

  25. Great... but by Anonymous Coward · · Score: 3, Interesting

    Now that NTFS has UNIX filesystem semantics, when will UNIX/Linux filesystems get some NTFS features like multiple streams and reparse points.

    These features are incredibly useful (arguably more so than symlinks), and the only Linux fs that comes close to implementing them is reiser4, which is not even part of the kernel.

    1. Re:Great... but by dascandy · · Score: 1

      Multiple streams are confusing as confucius, whereas reparse points are more commonly known as "mounting" in unix.

      Multiple streams are very incompatible, don't add anything to the FS that you couldn't do with plain more than one file and make stuff as confusing as hell. Why? To be able to add an icon to a file?

      Egad. Spend your time on useful things, such as BRINGING THE DARN THING OUT ALREADY.

    2. Re:Great... but by l3v1 · · Score: 1

      This is not how it works, thankfully. NTFS in itself is not a bad FS, agreed. Still, if some magic fairy came and made MS droids add native support for some real filesystems, I'd rather use Windows on xfs than ntfs [or anything else for that matter].

      --
      I am putting myself to the fullest possible use, which is all I can think that any conscious entity can ever hope to do.
    3. Re:Great... but by LnxAddct · · Score: 1

      Those are nice features, but *nix still had MS beat on several other fronts. The fact that MS still inconveniences its users with defragmenting says plenty about the situation, but filesystems like ReaiserFS and EXT3 still have plenty of other features that MS needs to implement before we worry about having to catch up to them.Regards,
      Steve

    4. Re:Great... but by gargleblast · · Score: 4, Funny

      Multiple streams are an absurdity. "Ok contestants, repeat after me: 'A file is a variable-length array of bytes.'" Steve Jobs: "A file is two variable-length arrays of bytes." BZZT. "Sorry Steve, thanks for playing." Bill Gates: "A file is N variable-length arrays of bytes." BZZT. "Whoops Bill, that's a directory. Looks like you're out too! Join us next week on 'Who wants to be an architect!'"

      Reparse points are more commonly known in the UNIX community as 'mount points.'

    5. Re:Great... but by Slashcrap · · Score: 1

      Now that NTFS has UNIX filesystem semantics, when will UNIX/Linux filesystems get some NTFS features like multiple streams and reparse points.

      Can you name a useful and widespread application for the multiple streams feature in NTFS?

      A hiding place for viruses does not count. I eagerly await your reply, which I'm sure is only seconds away.

    6. Re:Great... but by LLuthor · · Score: 1

      I am not the GP poster, but I regularly use this feature in my applications. It is in fact very useful, to the extent that I wish it were available on Linux (if nothing else, than for the sake of Samba).

      --
      LL
    7. Re:Great... but by LLuthor · · Score: 3, Interesting

      MS does not inconvenience its users to defrag. I have been running several Windows machines for many years (still running Win2K on some of them), and I have honestly never defragged them.

      Two are running Battlefield 2 servers 24x7, one is running a web server and a database server to aggregate statistics on players. All have been in service doing this kind of thing for over two years.

      Never defragged, still running as good as new.

      --
      LL
    8. Re:Great... but by NutscrapeSucks · · Score: 1

      > Can you name a useful and widespread application for the multiple streams feature in NTFS?

      Network filesharing for Macintosh clients.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    9. Re:Great... but by Krimszon · · Score: 1

      We can't live without streams on our Windows 2003 server running Services For Macintosh. The Mac has some types of fonts stored completely in a resource fork. This translates nicely to an alternative data stream on Windows. The only strange thing is that Explorer is not capable (or willing) to show the file size as a total of all streams, so these fonts show up as 0kb files. So pretty usefull for compatibility with Macs, and some have said it can be usefull for virus writers to hide their programs, but I think most modern antivirus programs know how to scan ADS.

    10. Re:Great... but by Anonymous Coward · · Score: 0

      Never defragged, still running as good as new.

      Ignorance is bliss.

    11. Re:Great... but by LLuthor · · Score: 1

      I just ran diskeeper's analysis on one of the machines, and the average number of fragments per file is 1.02. This is on a machine with 3 harddisks, totalling 760GB of disk space (479GB of it is used).

      The most fragmented file is 4.2GB and has 12 fragments.

      This machine does NOT need defragging.

      --
      LL
    12. Re:Great... but by Anonymous Coward · · Score: 0
      Defragging is handled more-or-less automatically by windows xp:


      Once every three days, by default, Windows XP will perform a partial defragmentation and adjust the layout of the disk based upon current use. The files to be moved are written in the file Layout.ini (found in the Prefetch directory under the System Root directory).


      Besides, fragmentation might not be that bad. Drives with 8mb buffers slurp a whole lot of crap in so you'll still be chewing on the buffer while the disk is doing a seek. Not to mention whatever buffering the OS does for you, too.
  26. Lol, symlinks by DrSkwid · · Score: 5, Informative

    The inventors of Unix scrapped symlinks when they did their next OS

    Symbolic links make the Unix file system non-hierarchical, resulting in multiple valid path names for a given file. This ambiguity is a source of confusion, especially since some shells work overtime to present a consistent view from programs such as pwd, while other programs and the kernel itself do nothing about the problem.

    http://plan9.bell-labs.com/sys/doc/lexnames.html

    NT *was* going to have executables that pretended to be files, i.e. when you opened the executable to get the contents it would run and return the output rather than the by bytes of the executable, with a special NT syscall to read the *real* contents. Kind of like a named pipe. I was looking forward to this but it didn't work out.

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    1. Re:Lol, symlinks by jrockway · · Score: 1

      What happens when you mmap one of these suckers?

      --
      My other car is first.
    2. Re:Lol, symlinks by Anonymous Coward · · Score: 0

      mmap() is for those who don't know how to read() and write()

    3. Re:Lol, symlinks by HawkingMattress · · Score: 2, Interesting

      Well one could argue that scrapping symlinks was a really bad idea. Yes they can lead to messy filesystems if they are used in a bad way, but they are also the only way to solve a myriad of problems.
      For example, i have dozens of webapps deployed in their own directories, and they all need a configuration file in a their own directory. Since this config file is the same for each webapp, it certaily makes a lot of sense to have the file be a symlink to a real file somewhere else, in a kind of meta directory. Then I can just edit this file instead of having to edit each copies. There is no way around this type of problem without symlinks. You have to make the thing less maintenable, more error prone, and futhermore you'll need to do more work, like maybe creating a script to copy the file in each directory.

    4. Re:Lol, symlinks by Anonymous Coward · · Score: 0

      NTFS does have that, look up reparse points. It works not only on the executables, but on arbitrary files and directories.

    5. Re:Lol, symlinks by Keeper · · Score: 1

      This, as a side note, is probably why Microsoft is introducing it in a server oriented os instead of a desktop os. FWIW.

    6. Re:Lol, symlinks by DrSkwid · · Score: 3, Informative

      I can and will argue that

      or rather, I'll just provide a link to this

      The Use of Name Spaces in Plan 9

              Rob Pike
              Dave Presotto
              Ken Thompson
              Howard Trickey
              Phil Winterbottom
              Bell Laboratories, Murray Hill, NJ, 07974 USA

      http://plan9.bell-labs.com/sys/doc/names.html

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    7. Re:Lol, symlinks by ajs318 · · Score: 1
      Symbolic links make the Unix file system non-hierarchical, resulting in multiple valid path names for a given file
      Rigidly hierarchical file systems are a bad idea anyway. Well, they're OK for machines, but not for us human beings. The future of filing systems is going to be thematic. With something physical like a stamp collection, you are pretty much stuck with one categorisation. If you have organised your stamps by country, you have to look through several pages to find all the stamps with flowers on them. But with a filing system, you can easily have multiple listings. Caveat: you can run out of "theme tags" if you do not design it carefully.
      NT *was* going to have executables that pretended to be files, i.e. when you opened the executable to get the contents it would run and return the output rather than the by bytes of the executable, with a special NT syscall to read the *real* contents
      You mean like a CGI-script? This sounds like a bad idea. At least CGI scripts only behave that way when run through httpd. For that to be default behaviour at the OS level sounds kind of dodgy. Especially when all we need to do is put `backticks` around a filename to get that behaviour. eg. {quoting from memory, so I may have this wrong}
      $ for i in *mp3; do mv $i `echo $i |sed -e's/\.wav//'`; done
      for changing foo.wav.mp3, bar.wav.mp3 and so on to foo.mp3, bar.mp3 and so on. Try doing that in a GUI!
      --
      Je fume. Tu fumes. Nous fûmes!
    8. Re:Lol, symlinks by Paul+Jakma · · Score: 3, Informative

      Symbolic links make the Unix file system non-hierarchical, resulting in multiple valid path names for a given file.

      You're confused. Files in Unix filesystems have no hierarchy, with or without symbolic links. Files are quite independent of file names. Multiple directories may contain entries for the same file, the names need not even be the same. The same directory may reference the same file with multiple names. Note for examples that renaming a file changes the modification time of the /directory/, but not of the file.

      Symbolic links are a bit of a hack though, yes. But mostly because they must expose the limitations of "files are not the same as filenames" - not because they allow multiple paths to the same file.

      --paulj

      --
      I use Friend/Foe + mod-point modifiers as a karma/reputation system.
    9. Re:Lol, symlinks by DrSkwid · · Score: 1

      They aren't my words, they are Rob Pike's

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    10. Re:Lol, symlinks by Paul+Jakma · · Score: 2, Insightful

      Then either he is confused, or it's a deliberate oversimplification. The former is impossible obviously ;), however the latter is a trap to the uninformed reader.

      He never mentions hard-links at all, with which the namespace remains quite hierarchical and cycle-free. Symbolic links suck not because of the multiple-name thing, but because they're an implementation hack that both can turn the namespace into spaghetti and produce inconsistent results across applications due to how exposed their guts are to applications.

      Plan9 has lots of interesting ideas here, obviously.

      --
      I use Friend/Foe + mod-point modifiers as a karma/reputation system.
    11. Re:Lol, symlinks by jrockway · · Score: 1

      > mmap() is for those who don't know how to read() and write()

      Come to think of it, how do you write to one of these things? Even M$ realized that this was a bad idea.

      --
      My other car is first.
    12. Re:Lol, symlinks by DrSkwid · · Score: 1

      I concure that symlinks are an implemention hack. And they we're never meant to be anything else. They stuck around because fixing the real problem was too hard/slow, like so many things we have to deal with now.

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    13. Re:Lol, symlinks by Crispy+Critters · · Score: 1
      "This ambiguity is a source of confusion..."

      Rob Pike describes in the article how some uses of symlinks can result in confusion for the user.

      Another one he does not mention is a directory containing a symlink back to the directory. cd linkname leaves you where you started. Or worse, a link back to a parent directory.

      Does the fact that symlinks can be made to do horrible things mean that they should be thrown out despite all their extremely valuable uses?

      It is a fact that unix-like OS's let you do stupid, destructive things. Do you want the rm executable to be hacked up so that root cannot run rm -Rf /? The philosophy, it seems to me, is to err on the side of providing capabilities, rather than creating a forgiving environment.

    14. Re:Lol, symlinks by Kazoo+the+Clown · · Score: 1

      I concure that symlinks are an implemention hack. And they we're never meant to be anything else. They stuck around because fixing the real problem was too hard/slow, like so many things we have to deal with now.

      Yes, my favorite is the fact that we have to reuse asterisk and slash in math expressions for most computer languages because we don't routinely have more explicit multiply and divide symbols available. I mean, how lame can you get?

    15. Re:Lol, symlinks by fluffy99 · · Score: 1

      I think that's a good example of where symlinks shouldn't be used. Why not make the webapps smart enough to do an include of the "master" file. Symlinks are a hack to avoid setting things up properly. A useful hack, but still a hack.

    16. Re:Lol, symlinks by shibashaba · · Score: 1

      NT *was* going to have executables that pretended to be files, i.e. when you opened the executable to get the contents it would run and return the output rather than the by bytes of the executable, with a special NT syscall to read the *real* contents. Kind of like a named pipe. I was looking forward to this but it didn't work out.

      I guess they decided they already had enough security holes to start with. Didn't they end up implementing this in userspace?

      --
      ---------- Open Source is capitalism applied to IP.
    17. Re:Lol, symlinks by HawkingMattress · · Score: 1

      Because in this particular case, the framework sandboxes the webapp in it's base rep for security reasons

    18. Re:Lol, symlinks by fluffy99 · · Score: 1

      And the symlink lets the webapp escape the sandbox then? One misbehaving webapp could potentially screw with the config file for all the web apps. Yup, that sounds like it's completely secure.

  27. not news by HawkingMattress · · Score: 1

    There have been soft links in ntfs since at least w2K, and probably NT4. I believe they're called junctions in the NTFS jargon. You need the administrative tools to be able to create them. And at least now they're kinda problematic in the sense that there is no way to distinguish them from real folder or files ince they've been created unless you bring up cmd.exe and check with junction.exe if they are indeed symlinks. So it would certainly be a good idea to integrate them better and have them in the main release. (Plus i don't know how it is now, but when i tried to install the administrative pack there was a big warning saying that you shouldn't do that unless your windows locale is english american, and that it was likely to cause unsupported problems if you did otherwise...)

    1. Re:not news by Anonymous Coward · · Score: 0

      No, what windows has had since w2k is hard links, not soft links...

  28. I expect even more "inspiration"... by marcello_dl · · Score: 1

    ... getting to Vista and coming from FOSS or *nix. Apple demostrated that incorporating free software has lots of advantages without hurting sales much, if at all.
    And Microsoft, with its stance on patents vs copyright in software, already demonstrated it can do shameless 180 degree turns.
    Microsoft: how much can you trust us today? :)
    Gates on patents

    --
    ---- MISSING MISCELLANEOUS DATA SEGMENT --- [sigdash] trolololol
    1. Re:I expect even more "inspiration"... by maxwell+demon · · Score: 1

      The nice thing about 180 degree turns is that you after doing two of them, you're back in the original direction, just a bit behind.

      --
      The Tao of math: The numbers you can count are not the real numbers.
  29. Another Vista Bug by DavidHOzAu · · Score: 1

    they should be interpreted on the client side of a file sharing protocol (otherwise this can lead to security holes)

    So if I call a Vista server from my Linux or WinXP box, the server will be as open as a sieve? Sweet.

  30. So, will they also get hard links? by WindBourne · · Score: 2, Interesting

    My understanding is that NTFS does not use hard links (and the associated counts). If they are allowing symblics, why not allow hard links?

    --
    I prefer the "u" in honour as it seems to be missing these days.
    1. Re:So, will they also get hard links? by v2 · · Score: 1

      NTFS supports hard links. There just aren't that many tools which can create them.

    2. Re:So, will they also get hard links? by dascandy · · Score: 1

      Your understanding is wrong. It did support hardlinks since the first version of the FS, as can be seen by hexediting the file table and seeing numerous files with commonly up to 4 names at the start of the FS.

    3. Re:So, will they also get hard links? by bcat24 · · Score: 1

      Yes, it does support hard links and has since Windows 2K. Here's a link.

    4. Re:So, will they also get hard links? by cocotoni · · Score: 1

      Your understanding is wrong. You can do it quite easily using the built in command fsutil.

      e.g.:

      fsutil hardlink create target_file.ext source_file.ext

      More information on the site of MS:

      http://www.microsoft.com/resources/documentation/w indows/xp/all/proddocs/en-us/fsutil_hardlink.mspx

      There are a lot of useful CLI commands in Windows but people usually don't bother to learn them.

  31. MS Motto by psiekl · · Score: 5, Funny

    We are the leaders, wait for us!

  32. How sad by photon317 · · Score: 2, Insightful


    The Unix guys finally figure out how to move past symlinks to something better (private per-process inherited namespaces and bind() overlay mounts ala Plan 9 - coming to a Linux box near you soon), and now Windows starts implementing it for the first time (well .lnk links were kinda like half-baked symlinks, so they were halfway there before this announcement anyways).

    --
    11*43+456^2
  33. NTFS Reparse points by Anonymous Coward · · Score: 0

    which let you implement symlink behavior has been around since Windows 2000.

    In order to create them you can use junction.exe:

    http://www.sysinternals.com/Utilities/Junction.htm l

  34. ..and about time, too! by unfunk · · Score: 2, Insightful
    ...now how about they get rid of this god-awful heirarchy thing they have happening here?
    In Windows Explorer, the topmost level is the desktop, while in the CLI, there's as many 'topmost' levels as there are drives in the machine.
    I never thought I'd say this, but I think they should adopt a *nix-like heirarchy, so that anything can be 'mounted' anywhere. Of course, they'd have to change the structure significantly, and have a built-in translator for "C:\things\stuff" type commands and whatnot.

    But then, it'd probably be so hard to change all that, that they'd be better off doing an Apple OSX trick, and we all know how likely that would be...

    1. Re:..and about time, too! by Anonymous Coward · · Score: 0

      It is already possible that you can map a new harddisk partion some as a directory or sub-directory on your computer.

      The only problem is that you can't use that harddisk afterwards some else. It will somehow create a partition on it that functions as a sub-directory of an other harddisk...

      Well again, they did implement something like it, but question remeans if it is as usefull as you thought before...
      outside of NTFS you can forget about it... NO Linux support and NO Windows 98 or DOS support...

      well another useless adventure...

    2. Re:..and about time, too! by Short+Circuit · · Score: 1

      Simply treating Desktop as \ would ma me happy in that regard. It would allow something like "cd "\My Documents".

      Arguably, per-user root directories would be more inuitive and convenient than per-user home directories.

    3. Re:..and about time, too! by bcat24 · · Score: 1

      At least in Windows XP, you can mount a disk on an empty folder. So, in theory at least, you could have one drive mounted on a drive letter (say C:\), and all your other drives mounted on a subfolder of that drive letter (e.g., C:\Floppy\, C:\CD-ROM\, etc.).

  35. useful? really? by teslar · · Score: 0

    All the 'M$ is just copying the OS of the Gods again' aside, and not doubting for a minute that symlinks are powerful little thingies, does the average user *really* need them? I certainly can't remember ever having said 'Damn, I wish this piece-of-crap-OS would support symlinks' during my Windows days. Even under Linux, leaving OS-related symlinks aside, the only ones I have are in my home folder - they point to data directories on other partitions and their function is exactly that of a shortcut under Windows - they merely replace the clutter of folder shortcuts on my Windows desktop.

    So, yeah, they are cool and more powerful than Windows shortcuts... but did anyone *really* need them?

    1. Re:useful? really? by xtracto · · Score: 2, Informative

      does the average user *really* need them? I certainly can't remember ever having said 'Damn, I wish this piece-of-crap-OS would support symlinks' during my Windows days.

      Man, you need to use symlinks to see how useful they are. As someone pointed before, symlinks are great to create compilations of files on a directory. Also, they are very useful if you want to use different types of libraries (DLLs) on different programs (in different directoires).

      As for the "average user", as someone else said also, this symlink will surely help the file system Virtual folders or whatever is named. It is the same as the SQL oriented file system, you could ask, will the average user make use of SQL queries?, and the answer is that, they will, indirectley through the applications that are make use of that technology.

      Remember, this symlink will be a feature of the FILESYSTEM, which will be used by the programs. I for one would preffer to have multiple symlinks to DLLS than to have to copy the libraries through all the hard disk (or maybe not DLLS but other files).

      --
      Ubuntu is an African word meaning 'I can't configure Debian'
    2. Re:useful? really? by countach · · Score: 1

      Uh yeah, we really need them. They can solve any manner of tricky problems. Some program expects some file to be someplace for some stupid reason, and you can just symlink it to where it expects it to be. Or you can mount drives in a new place and symlink things to where they used to be. Do you want to be in control of your file system, or at the mercy of it? As I understand it, Plan 9 have given you even more control, but symlinks are better than nothing.

    3. Re:useful? really? by anaplasmosis · · Score: 0

      Yes, they are useful. One of the zillions of things I hate about Windows is the inability to create symlinks, and the half-arsed useless cack that "short cuts" turned out to be. Oh, and to all the responders whining along the lines of "What, so Linux never stole an idea from anywhere else", Linux doesn't have the richest man in the world arrogantly spouting nonsense about what a "great experience" his scabby junk product provides. If Gates kept his mouth shut, I for one would object to Windows slightly less. Only slightly, mind you.

  36. 20 years later... by Anonymous Coward · · Score: 0

    ... and they're still catching up with the basic features of UNIX. :P

  37. Re:Ah yes by MichaelSmith · · Score: 4, Insightful
    The basis of it is that a shortcut is just a file

    When shortcuts were invented for Win95 the Win32 API should have been built to treat a shortcut as the object it pointed to. That way they would have had real working links up front. Now they are going to be stuck with two types of link which work in different ways.

  38. It's worse by Anonymous Coward · · Score: 3, Funny

    "Those who do not understand UNIX are doomed to buy Windows." --Anonymous Coward

  39. Oh the horrors by gringer · · Score: 1, Funny

    No, it's not April 1st, it's halloween. Microsoft are trying to scare us all away from using Windows.

    --
    Ask me about repetitive DNA
    1. Re:Oh the horrors by Mr.+Underbridge · · Score: 1
      No, it's not April 1st, it's halloween. Microsoft are trying to scare us all away from using Windows.

      Speaking of which, where's my damned memo, Raymond? ;)

  40. NTFS already has symlinks by heffrey · · Score: 1

    NTFS had had symlinks for donkey's years. Have a search for "reparse junction" on Google. I use them all the time on my Windows systems.

    1. Re:NTFS already has symlinks by Anonymous Coward · · Score: 0

      Who cares? Windows is for lamers, but this site is for geeks. Big difference.

  41. CYGWIN? by the_instigator · · Score: 2, Interesting

    When i create links in CYGWIN on my win32/NTFS box they appear in MS explorer as shortcuts and work like MS shortcuts but they act like symlinks, this lead me to belive that symlinks were possible under ntfs but not exposed to the user.

    1. Re:CYGWIN? by djmurdoch · · Score: 1

      Those are just shortcuts. Windows programs see them as little files of no particular importance. Only the shell and Cygwin interpret them specially.

    2. Re:CYGWIN? by the_instigator · · Score: 1

      but if i double click them, they take me to the correct location. As soon as i integrogate them otherwise (properties panel/rename etc) they fall apart into "files of no particular importance". It's always been a curiocity to me. Perhaps there was something more going on that just cygqin and NTFS. Thanks for your reply. I'm interested to find out what's going on here, at the time i just shruged it off as weird, but cool. I'll see if i can reproduce this evening.

    3. Re:CYGWIN? by djmurdoch · · Score: 1

      When you double click them, you're talking to Explorer (the shell). The shell treats shortcuts a lot like symlinks (but with extra bells and whistles, e.g. you've got the possibility of adding command line arguments to executables, changing directories, etc.).

      Write a program in a non-Cygwin compiler, and try to use the shortcut. It will just see it as a little file.

    4. Re:CYGWIN? by Short+Circuit · · Score: 1

      Open Notepad and drag one of those shortcuts into the editing area. Shortcuts are plaintext files with a .lnk extension. Explorer and Cygwin know to read these files to figure out what you really meant to refer to.

    5. Re:CYGWIN? by the_instigator · · Score: 1

      super, thanks guys. :)

  42. FOUR, er FIVE symlink styles, all kinda *wrong* by Ancient_Hacker · · Score: 5, Interesting
    So there's going to be FOUR ways to alias files and folders and volumes:
    • (1) Mapping a directory to a drive letter.
    • (2) Shortcuts.
    • (3) NTFS mount drive as folder.
    • (4) The new symlink thingy.

    oops, isnt there still:

    • the old DOS "subst" command too?

    Make that FIVE ways. All of them looking somewhat alike, but all with subtly different syntax, semantics, overhead, and security implications. Sweet!

  43. Evaluating the link client side ?? by HawkingMattress · · Score: 1
    From TFA : Now why is this relevant to the SMB2 protocol? This is because, for symbolic links to behave correctly, they should be interpreted on the client side of a file sharing protocol (otherwise this can lead to security holes). SMB2 understands the concept of symbolic links and evaluates the links on the client

    I don't quite understand, if I make a symlink called softs in a folder called share for example, of course i want the SMB clients to be able to follow the link as it is evaluated server side. It ain't a security risk, it's how it should be. Now if you do the opposite and have the client evaluate the link, yes you can have deep security issues since you can have the client do things on a file which he thinks is remote while he's in fact treating a local file... I hope the author just mixed up client/server concepts, or it will indeed suck...

    1. Re:Evaluating the link client side ?? by Lord+Bitman · · Score: 1

      Not knowing what you're doing isnt a security issue. Not allowing clients to create symlinks to otherwise unshared files /is/ a security issue.

      --
      -- 'The' Lord and Master Bitman On High, Master Of All
  44. Good news by VincenzoRomano · · Score: 1

    It seems that Microsoft operating systems are getting closer to real world needs.
    I wonder how did those engineers got this mind blasting idea!

    --
    Maybe Computers will never be as intelligent as Humans.
    For sure they won't ever become so stupid. [VR-1988]
  45. Improve on symlinks? by mcrbids · · Score: 5, Informative

    There can be some improvement, particularly with managing symlinks.

    1) When you move a destination object, symlinks don't follow the target . This leaves "broken" symlinks that refer to nothing. Why doesn't the mv command move these too?

    2) When you symlink a symlinked folder, the root symlink is ignored. Let's say you symlink /usr/tunes to /usr/local/tunes. Later, you symlink /usr/local/tunes/YMCA.mp3 => ~/my_favorite_song.mp3. Now, you have a symlink that relies on both the existence of "/usr/tunes/" AND symlink "/usr/local/tunes >> /usr/tunes". Thus, while deleting 1st ("/usr/local/tunes => /usr/tunes") symlink doesn't actually delete anything, it does cause ~/my_favorite_song.mp3 to become unworkable.

    3) Symlinks cause all kinds of weirds around chrooted file systems , especially ones on a different underlying filesystem. If you're not very careful, nothing is as it seems! Files go nowhere, files are accessable only sometimes, etc. It's logical when you understand and appreciate a symlink for what it is, just a referral, but it can be maddening when security contexts get distorted around a chroot...

    --
    I have no problem with your religion until you decide it's reason to deprive others of the truth.
    1. Re:Improve on symlinks? by SimilarityEngine · · Score: 1

      I think hard links solve problems (1) and (2) for you, as they refer directly to inodes rather than being pointers to directory entries elsewhere in the heirarchy. Only problem being that you can't hard link to a file on a different filesystem.

      --
      Those who can make you believe absurdities can make you commit atrocities. - Voltaire
    2. Re:Improve on symlinks? by $RANDOMLUSER · · Score: 1
      1) ...Why doesn't the mv command move these too?
      Not a problem - Windows doesn't do mv.

      2) /usr/tunes => /usr/local/tunes. Later /usr/local/tunes/YMCA.mp3 => ~/my_favorite_song.mp3
      "Chkdsk found 1,953,642 lost chains. Convert chains to files?"

      3) ...chrooted file systems , especially ones on a different underlying filesystem...
      This is Windows. You must be new here.

      --
      No folly is more costly than the folly of intolerant idealism. - Winston Churchill
    3. Re:Improve on symlinks? by jdowland · · Score: 1

      1) When you move a destination object, symlinks don't follow the target . This leaves "broken" symlinks that refer to nothing. Why doesn't the mv command move these too?

      Technically that would involve storing back-references somewhere which would be more maintenance work for the filesystem and/or tools, but the real reason is, a whole lotta software relies on the historical behaviour. Consider the alternatives system used in debian (and adopted by redhat): a symlink in /usr/bin/foo points to /etc/alternatives/foo, which in turn is a symlink to the real binary, maybe /usr/bin/real-foo-1. If you update the second symlink to point at /usr/bin/real-foo-2, you don't want the first symlink thinking "oh, that's been moved/deleted/changed, I'll change too"

      3) Symlinks cause all kinds of weirds around chrooted file systems

      The problem there is that chroot is a nasty hack, not that the symlink stuff is broken. If you disagree, exactly how would you propose the symlink code could cope better?

    4. Re:Improve on symlinks? by nick8325 · · Score: 1
      1) When you move a destination object, symlinks don't follow the target . This leaves "broken" symlinks that refer to nothing. Why doesn't the mv command move these too?
      IIRC, the Distributed Link Tracking Client already does something like this for shell links. It could probably do it for symlinks too...
    5. Re:Improve on symlinks? by rjw57 · · Score: 1

      You don't seem to have quite grasped the concept of symlinks. What you describe are closer to hardlinks (leave the '-s' out of 'ln -s'). What you require either requires the links to only be between objects on the same filesystem or for there to be some other storage on link connectivity than the filesystem itself. Imagine I symlink /usbstick/bar to /home/foo. When I remove the stick and place it in another computer I don't expect (or in general want) that mv /home/foo /home/buzz will affect the USB stick. I can't then store 'reciprocal links' on the USB stick otherwise it could lead to filesystem instability when moving between machines. Similarly I don't want to scan through my entire file system each time I move a file to update any links.

      We're left with storing the link metadata in the file-system layout (be it NTFS, Reiser, whatever) itself such that it can be efficiently searched to find any links that might require updating. This now no longer allows inter-fs links which reduces us to hard-links.

      --
      Rich
    6. Re:Improve on symlinks? by countach · · Score: 1

      >1) When you move a destination object, symlinks don't follow the target . This leaves "broken" symlinks that
      >refer to nothing. Why doesn't the mv command move these too?

      Because some time in the future they may become unbroken. Just because a link is broken at certain times doesn't mean it will always be broken. Automatically moving them could have undesired consequences.

      Also, it would be darned hard to implement in the traditional UNIX file system, but that's another story.

      > 2) When you symlink a symlinked folder, the root symlink is ignored.

      That's just another case of (1) and the same answer applies.

      >3) Symlinks cause all kinds of weirds around chrooted file systems

      It may or may not be wierd depending on what you want to do. If it seems wierd, maybe you should have used relative paths, or absolute paths or vice-versa.

    7. Re:Improve on symlinks? by Short+Circuit · · Score: 1

      3) ...chrooted file systems , especially ones on a different underlying filesystem...
      This is Windows. You must be new here.


      Windows XP supports FAT16, FAT32 and various versions of NTFS, as a start. And I've seen third-party drivers to support EXT2 and FTP.

      It's not that Windows doesn't support multiple filesystems, or even that it hides it better. It's just that we UNIX users tend to be more aware of the filesystems they're running, since, for example, system crashes have different impacts on journalled filesystems vs non-journalled filesystems, and even between different journalled filsystems.

    8. Re:Improve on symlinks? by lahvak · · Score: 1

      1) That's how symlinks are supposed to work! Say you have 50 symlinks to /some/file/somewhere. You want to replace the file by some other file, but keep a backup copy. So you do mv /some/file/somewhere /some/file/somewhereelse, at which moment your symlinks become broken. Now you do mv /some/other/file/somewhere /some/file/somewhere, and all your links work again, pointing to the NEW file.

      In 2), you are just repeating the same thing as in 1), and the answer is the same. That's exactly the way it is supposed to work, and that's where the real strength of symlinks is. In the situation you describe, you can continue by symlinking /opt/media/tunes to /usr/local/tunes, and if a file named YMCA.mp3 is in /opt/media/tunes, your symlink will start working again, pointing to the new file.

      As far as 3) goes, if you understand how symlinks work and how chrooted filesystems work, you can avoid all the "weirds". Symlinking is a very powerful tool, and as with any powerful tool, if you don't inderstand it, it is easy to mess things up.

      --
      AccountKiller
    9. Re:Improve on symlinks? by Tom · · Score: 1

      Answers:

      1) Because there is no entry in the inode data of the file you move, so the only way to update symlinks would be to scan the entire filesystem. Oh, and any potential remote filesystems. And any offline filesystems that could be mounted.

      2) Same reason. Symlinks are independent of the files the link to. In some cases, that is even desired behaviour. "improving" it might break a couple applications that rely on this.

      3) Right, chroot and symlinks don't mix well. However, can you come up with a solution that stays consistent throughout entering and leaving multiple chroot contexts?

      --
      Assorted stuff I do sometimes: Lemuria.org
    10. Re:Improve on symlinks? by ajs318 · · Score: 1
      1. When you move a destination object, symlinks don't follow the target . This leaves "broken" symlinks that refer to nothing. Why doesn't the mv command move these too?
      Because you might not have wanted the symlink to follow the target!

      For instance, say I have two scripts share_broadband {which sets up a simple firewall and NAT through my broadband line} and share_modem {which does something similar, but uses my POTS modem} on my system. Now I create a symlink share_internet which points to share_broadband. {If my ADSL packs up, all I need to do is re-point one symlink and I can maintain some internet functionality.}

      If I rename share_broadband, perhaps because I am making changes to it, I might prefer share_broadband to remain as a broken symlink {which will do nothing} than to point to the file being edited {which might be catastrophic}.
      2. When you symlink a symlinked folder, the root symlink is ignored.
      That's right. Why should it be any other way? You might have removed that symlink for a reason. It is really none of the computer's business either way.
      3. Symlinks cause all kinds of weirds around chrooted file systems
      A chrooted file system deliberately cannot see anything outside of the chroot. If it could, that would ruin the whole point of chroot! Look into bindmount if you really want to access stuff outside a chroot from within the chroot.
      --
      Je fume. Tu fumes. Nous fûmes!
    11. Re:Improve on symlinks? by hackstraw · · Score: 1

      1) When you move a destination object, symlinks don't follow the target . This leaves "broken" symlinks that refer to nothing. Why doesn't the mv command move these too?

      I believe this is the correct behavior. Hardlinks do what you want here with the limitation that they only work on the same filesystem. I dislike hardlinks in general because its impossible to see which is the canonical file, and if you want to remove the data, you have to know where all of the hardlinks are, and remove all of them. With symlinks, you can tell that it is a symlink and directly tell where it is pointing.

      2) When you symlink a symlinked folder, the root symlink is ignored. Let's say you symlink /usr/tunes to /usr/local/tunes. Later, you symlink /usr/local/tunes/YMCA.mp3 => ~/my_favorite_song.mp3. Now, you have a symlink that relies on both the existence of "/usr/tunes/" AND symlink "/usr/local/tunes >> /usr/tunes". Thus, while deleting 1st ("/usr/local/tunes => /usr/tunes") symlink doesn't actually delete anything, it does cause ~/my_favorite_song.mp3 to become unworkable.

      This is almost the same as #1. If you wanted a copy of YMCA.mp3 you should have copied it. Same thing happens if you expect a file to be available over the network and someone else deletes it or the network is down or whatever. This is not a problem with symlinks.

      3) Symlinks cause all kinds of weirds around chrooted file systems , especially ones on a different underlying filesystem. If you're not very careful, nothing is as it seems! Files go nowhere, files are accessable only sometimes, etc. It's logical when you understand and appreciate a symlink for what it is, just a referral, but it can be maddening when security contexts get distorted around a chroot...

      Oh, and having to statically link your binaries or copy all of your shared libraries isn't a PITA in a chrooted environment either. There will always be more complexity, issues, and problems with security. Its less convenient for me to have to have a ring of keys to open my house, my car, and work. I have to ensure I have the keys, and every time I open a door I have to get my keys out and put the correct one in a small slot and turn it. Sometimes there are more than one lock on a door or even a series of locks to go through. Chrooted environments are very special.

    12. Re:Improve on symlinks? by alexhs · · Score: 1

      Only problem being that you can't hard link to a file on a different filesystem.

      AND you can't hard link a directory.

      --
      I have discovered a truly marvelous proof of killer sig, which this margin is too narrow to contain.
    13. Re:Improve on symlinks? by Crag · · Score: 1

      Symlinks work across filesystems (as you mentioned in 3) and the filesystem hosting the link may not be mounted when it's destination moves, so it's actually impossible to make them work the way you ask. And as another poster pointed out, sometimes you don't WANT links to follow their targets.

      Another poster mentions that hard links may work the way you want, but I think that poster mis-understands hardlinks and your request. You can't hardlink directories, and deleting the link doesn't delete the target (which is what you seem to be asking for with 2).

      Anyway, what you need to understand is that symlinks are not the things they point to, nor are they supposed to be. In fact, even the things they point to aren't themselves. A file or directory is a one-way association between that name and the data it points to. A path is a list of names. A symlink is a one-way association between a name and another name. These are powerful abstractions just as they are, and whatever functionality you're actually looking for is probably higher-level than this.

      If you want two names for the same thing, your desktop shell is probably where that functionality belongs.

      The minimalist behavior of symlinks and hardlinks is exactly what makes unix more powerful than DOS.

      For those looking for a much better written perspective on these issues I recommend Neil Stephenson's "In The Beginning Was The Command Line..."

    14. Re:Improve on symlinks? by bcat24 · · Score: 1

      You forgot FAT12, which Windows supports for floppies.

    15. Re:Improve on symlinks? by Anonymous Coward · · Score: 0

      You make some good points, but...

      "1) When you move a destination object, symlinks don't follow the target.
      All these things were already thought through. The symlink is just a referral to the original.

      "2) When you symlink a symlinked folder, the root symlink is ignored."
      The shell should assist you very reasonably, but not necessarily in every way. Clean up your own shit.

    16. Re:Improve on symlinks? by Short+Circuit · · Score: 1

      Doubt...and I had that in mind when I first started composing the comment. :-/

    17. Re:Improve on symlinks? by Eil · · Score: 1


      These complaints aren't really valid. Symlinks on Unix are intentionally simple and lacking in features. Remember, the Unix philosophy is that you make a facility as simple and small as possible and then build around it later for increased functionality. Symlinks are a shining example of this, and I'd be more than happy to demonstrate why.

      When you move a destination object, symlinks don't follow the target

      This is by design. For proper conceptual view, imagine a symlink as a file containing a free-form path to another file. This path is never verified against the actual file system because it is assumed that the user knows what she is doing. A good thing, because a huge amount of software and self-imposed admin routines (like backups) depend on this behavior.

      Why doesn't the mv command move these too?

      Because mv would then have to scan the entire filesystem looking for symlinks which point to the target. And it would have to do this on EVERY FILE. You have any idea what kind of performance hit that would cause? The purpose of mv is to move files and that's ALL it should ever do. If you want more functionality, build something on top of it.

      When you symlink a symlinked folder, the root symlink is ignored.

      Again, this has to do with a symlink storing a plain old unvalidated string. An easy and simple workaround to this "problem" is to just symlink to the real path of the file rather than the symlinked path.

      Symlinks cause all kinds of weirds around chrooted file systems

      The cause of this is that you either are not using symlinks properly or you are not using chroot properly. I can't imagine symlinks causing much more confusion within a chroot than they do on a native filesystem if you use them right.

      All of the complaints that you have against modern symlinks can be addressed either by managing your symlinks in an intelligent manner (including knowing when and when not to use them) or by creating some program that utilizes the current functionality and builds on top of it.

      For example, there's nothing preventing you from writing a utility that keeps symlinks recorded in a small database so that you can move a file and any symlink paths that point to it at the same time without a performance hit. This is a much better solution than complaining that symlinks (and the other Unix utilities) are broken because they don't incorporate some functionality that you happen to want.

    18. Re:Improve on symlinks? by SonarNerd · · Score: 1

      And many years ago, OS/2 did this right... No broken symlinks when target is moved, etc...

    19. Re:Improve on symlinks? by Feztaa · · Score: 1

      You can, but you have to be root and turn on a special option. They deliberately make it hard to do because if you accidentally make a recursive hardlink, the computer will shoot deadly beams into your eyes and then explode. And you don't want that!

    20. Re:Improve on symlinks? by alexhs · · Score: 1

      Well, it is more of a hack than a documented feature. POSIX forbids it, and (therefore) it doesn't work on all OSes (seems it is GNU-specific).
      You better don't use it.

      Curiously, the french ln(1) manpage is more verbose and gives more details than the english one...

      --
      I have discovered a truly marvelous proof of killer sig, which this margin is too narrow to contain.
  46. Parent funnier than grandparent by Anonymous Coward · · Score: 0

    n/t

  47. MyDocu~1.sym by sl4shd0rk · · Score: 1

    I can see it already. Are these new symlinks going to be iso9660 compliant? Yeah right.

    --
    Join the Slashcott! Feb 10 thru Feb 17!
  48. Ahh I get it. by windowpain · · Score: 1

    So in other words, shortcuts will work like they should have worked all along. What a concept. But only in the server edition. They'll still be broken in the other "editions." Smooth move.

    --
    Insert witty sig here.
  49. Innovation Indeed... by oztiks · · Score: 1

    My god, insted of ripping off a decent and challenging "unix like" innovation they are ripping off very simplisitic and straight forward ones. .. I wonder if ms will decide to actually implement VFS subsystems .. now that would raise an eyebrow! not bloody symbolic links ... all i got to say is a big .. PFFFFT!

    BTW how come this earned a spot in the slashdot? GIVE ME SOMETHING REALLLLL!!!!!!!!

  50. They're called hardlinks. by Poromenos1 · · Score: 1

    I'm not sure if they are the same as symlinks, hardlinks are duplicate file records in the FAT. You can create them in XP (maybe 2k?) with the syntax (from the windows XP help file):

    fsutil hardlink create NewFilename ExistingFilename

    Hardlinks cannot jump partitions though, that's why I'm not sure if they are the same as symlinks. If a hardlink is removed, the file remains until the last reference to it is deleted.

    --
    Send email from the afterlife! Write your e-will at Dead Man's Switch.
    1. Re:They're called hardlinks. by DanteLysin · · Score: 1

      Symlinks can also be referred to as softlinks. They can be created across filesystems.

      http://www.computing.net/solaris/wwwboard/forum/42 12.html

  51. emulating Unix by dancallaghan · · Score: 1

    It really seems like somebody at M$ has said "what're the best bits of Linux (et al), and why can't we put them into Windows?" Hence we have the much-touted "Monad" shell thing, symlinks, ... But in fact they're not really addressing the Windows' real shortcomings as a server OS, just piling on more coats of paint as they often tend to do ...

    1. Re:emulating Unix by oztiks · · Score: 1

      Lets look at it this way they want to make windows more server os orientated but ....

      The things they are implementing:
      - Symlinks
      - Shell scripting Language
      - AV, Spywear apps

      They things they should be implementing
      - Proper memory protection
      - VFS technology
      - Proper multiuser environment (including proper file permission systems)
      - Integrated internet protocalls as an os subsystem, not just a set of dodgy dlls. with an even more dodgyer firewall sitting on top of it slowing everything down...

      MS innovation requires just two things, a nice big smoky fire and a huge ass mirror...

  52. Wait, it gets worse by Anonymous Coward · · Score: 1, Funny

    "Those who do not understand UNIX are doomed BY Windows." --Anonymous Coward

  53. Not just video & music by TuringTest · · Score: 1

    Virtual folders are the single biggest change in terms of user tools, and a departure from the arcane hierarchical filesystem model. The point is not managing multimedia files without the Player, the point is managing ALL kind of files the same way (thus making the player application redundant).

    iTunes and now Media Player have trained users into this information management way - based on libraries of similar items, and now its intended to be escalated to the whole system and replacing the old way (which was not good for tasks not related to OS programming, due to its many shortcomings).

    --
    Singularity: a belief in the "God" idea with the "demiurge" relation inverted.
    1. Re:Not just video & music by Sockatume · · Score: 1

      Oh, I agree, I just went for the media thing because that was where it would prove most useful.

      --
      No kidding!!! What do you say at this point?
  54. Re:Ah yes by coolidk · · Score: 1

    Is it just me or have the people answering this post lost their sense of humor?

  55. Duplication... by Anonymous Coward · · Score: 5, Funny

    ...is a compliment of the highest form.

  56. Not really. by Anonymous Coward · · Score: 0

    Junction points do not work with files, only with directories, and don't allow you to reference directories in other units.

  57. What good will that be to anybody? by raphae1 · · Score: 1

    OK so NTFS gets symbolic links... it also has had hard links and multiple data streams for ages, unfortunately with the need for backwards compatibility, the vast number of FAT/FAT32 installs and the average user IQ, I have not yet seen any Windows software that actually uses these features, and it's not easy to see them in action even from the command line, unless you know what obscure Resource Kit tool does the job or what specific shell syntax supports the required feature...

    1. Re:What good will that be to anybody? by lahvak · · Score: 1

      That's exactly the point! If MS implement this right, it will be handled by the OS, so the applications won't have to do anything special to use this. In reality, there may be couple of problems. Infinite loops will have to handled somehow, but since most applications on Windows use the same canned open file dialog from some system dll, all MS will have to do is rewrite this dll. Of course some applications use other widget sets, like gtk, but that just means that gtk for windows developers will have to handle failure to poen files due to infinite symlink loop in their file open dialog. Since gtk originated on Unix, it should be already there. The other problem is that applications will no longer be able to assume that different filenames means different files, but I don't really see where this could cause serious problems. To most users, symlinks will look just like ordinary files or directories. More so than the damn shortcuts. I sure hope that when they introduce symlinks, they get rid of the shortcuts!

      --
      AccountKiller
    2. Re:What good will that be to anybody? by fluffy99 · · Score: 1

      Internet Explorer uses alternate streams to store info about what zone a file was downloaded from. Windows then uses that info when you try to launch the file to make security decisions. One of the recent games I bought uses alternate streams to store authentication data it downloads from the server.

  58. Way to (*&@!up your system by Anonymous Coward · · Score: 0

    Yeah, let me tell you - all you need in one other person with access to this box and any Microsoft tool that is not designed with knowledge of symlinks and wa'la! You've got hosed filesystems!

    The problem is, most all of Microsoft tools don't just deal with the symlink (junction actually) as a simple file, they also link to the actual data and remove it too, not just the symlink, in a inconsistent way.

  59. MS did it to themselves by dustmite · · Score: 2, Insightful

    Microsoft brought this on themselves by running around calling themselves "innovative" pretty much several times per sentence during the anti-trust trial, and then continuing with an ongoing PR campaign that still today tries to paint them as being a truly "innovative" company. If you go call yourself innovative, and then proceed to produce a new "modern" operating system for 2006/7 whose primary advancements are all features that were commonplace in many other products anywhere from five up to nearly thirty years ago, you are asking to be lambasted, and you are going to be. You claim to be something that strongly, then you better be able to properly back up that claim or people will call you out on it.

    It's kind of like what Google did to themselves with their "do no evil" 'motto'. By having such a motto, they've created a whole crowd of people (and a whole sub-genre of "journalism") which specifically look for evidence that they are 'evil'.

    1. Re:MS did it to themselves by Anonymous Coward · · Score: 0

      If they use an idea that is already present in a *nix distro you say they aren't innovative, if they don't have that feature in their product you complain about their product lacking that feature... How are they supposed to win with you people?

    2. Re:MS did it to themselves by Anonymous Coward · · Score: 0

      > How are they supposed to win with you people?

      Bingo, Microsoft aren't supposed to win, they're supposed to compete in a fair and open market. Why are MS proponents not capable of understanding that?

    3. Re:MS did it to themselves by ilitirit · · Score: 1

      You claim to be something that strongly, then you better be able to properly back up that claim or people will call you out on it.

      People? Don't you mean sheep? Because judging by the responses to this article (and the mod point allocation), that's exactly what they are.

      IMO it's normal for a few people to allude to the anti-trust cases and their business practices in any given M$ thread, but an entire forum? And in every thread? Does that not strike anyone as odd?

    4. Re:MS did it to themselves by ilitirit · · Score: 1

      > Why are MS proponents not capable of understanding that?

      Why are MS opponents not capable of understanding that just because someone does not demonize MS at every given opportunity, it does not make them a proponent?

    5. Re:MS did it to themselves by NutscrapeSucks · · Score: 1

      Microsoft's defence of "innovation" was really based around one specific innovation -- the integration of web browsing libraries into the shell (without the government and courts stopping them ... a battle they won, BTW).

      Anyway, the crowd here is more than happy to jump on Microsoft over symlinks, but looks the other way while KDE and Apple copy Microsoft's approach for building a web browser.

      It's also a somewhat ironic position from Linux Advocates, considering that Linux is the least innovative OS ever produced.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    6. Re:MS did it to themselves by Shaper_pmp · · Score: 1

      I'm not coming down on either side of this argument (I dislike MS's attitude, but use their OS and apps), but:

      "If they use an idea that is already present in a *nix distro you say they aren't innovative, if they don't have that feature in their product you complain about their product lacking that feature... How are they supposed to win with you people?"

      By offering an operating system that includes all the useful features that many other operating systems have offered for 10-30 years, and shutting up about "innovation" until they actually do truly innovate the majority of things they spend millions trumpeting as "innovation"...

      To be sure, MS is getting a hell of a bashing in this article's replies. However, when you look at the features MS has announced for Vista (virtual folders: Mac OSX, symbolic links: Unix since the year dot, Avalon/XAML: Mozilla/XUL, etc) an awful lot of them aren't... well... innovative[1] at all.

      [1] From Google: "advanced: ahead of the times"... or "being or producing something like nothing done or experienced or created before".

      --
      Everything in moderation, including moderation itself
    7. Re:MS did it to themselves by Anonymous Coward · · Score: 0
      • The "innovation" rhetoric started in the DOJ trial and we've heard nothing else from Microsoft executives ever since.
      • KDE and Apple aren't banging on about innovation everytime someone challenges them.
      • Linux developers and distributors aren't exactly proclaiming linux is the pinnacle of innovation either.
      There's also no metric for innovation, patents are an especially poor indicator in this respect and not just because of the contentious nature of software patents, this is reflected in the patent quality debate. If you aren't going to provide clear examples of Microsoft innovation, you're just being a jerk.
    8. Re:MS did it to themselves by man_of_mr_e · · Score: 1

      Umm.. I think you failed economics somewhere. You seem to imply that you can't "Win" if you compete fairly. That's kind of stupid.

    9. Re:MS did it to themselves by man_of_mr_e · · Score: 1

      Actually, some of the stuff you mention *IS* innovative. XAML, for instance, is predated by XUL, but XUL only does some of what XAML can do. For example, you can't do 3D modeling with XUL, but you can with XAML.

      Also, while OSX Tiger has the equivelent of Virtual Folders, OSX just beat MS to the punch. MS has been talking about this for 3 years, and their tardiness allowed Apple to copy the idea and beat them to market. In fact, MS was talking about this very concept as far bask as 1995, when the "Cairo" version of NT was suppoed to have it.

      Not that I think MS was the first to envision it, though, i'm sure others thought of it even earlier.

    10. Re:MS did it to themselves by man_of_mr_e · · Score: 1

      While I certainly agree that it's perfectly valid to call them on anything they call Innovative if it's not, that's not what's going on here.

      I've seen nowhere that Microsoft has called this feature innovative. It's only people who like to bitch that are creating the impression that Microsoft is.

    11. Re:MS did it to themselves by Anonymous Coward · · Score: 0

      That was not implied at all, what was implied was that Microsoft would prefer to chance further ineffective antitrust sanctions rather than risk their de-facto monopoly through open competition.

      I think you need to learn how to read things in relevant context, a kindergarten English course may be of some assistance in this.

    12. Re:MS did it to themselves by man_of_mr_e · · Score: 1

      I really think YOU need to consider the context in which your message was written. The context was that Microsoft is in a lose-lose situation because if they implement a feature someone else has, they're called copy cats, but if they do something new they're called "non-standard".

      Neither of those situations have anything to do with antitrust sanctions or them being a monopoly, but you chose instead to write that they aren't allowed to "win" (ie they're forced to lose no matter what) because they should compete fairly.

      In other words, you are saying that you can't win if you compete fairly.

      The context doesn't support your comment, which is why it was so stupid.

    13. Re:MS did it to themselves by NutscrapeSucks · · Score: 1

      I did provide a clear example, jerk.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
  60. Symlink attacks? by Dj+Offset · · Score: 1

    In good old Microsoft tradition, I guess this opens the door for a whole new class of vulnerabilities.

    1. Re:Symlink attacks? by Stoned4Life · · Score: 1

      Haven't there already been attempts at such attacks elsewhere?

      --
      Stoned4Life
      gen = new Random
  61. great by Eric604 · · Score: 1

    to read all the comments of the *nix zealots making fun of MS but actually pissing in their pants fearing there will be less and less unique points to brag about their OS. Well, do not fear! There will be enough things left that windows can't do.

    1. Re:great by tomstdenis · · Score: 1

      Last time I checked, Gentoo [and the BSDs and other Linux distros] don't have the "Activation" feature. They're really falling behind MSFT in this respect.

      I mean each time you build a new computer [or rebuild an old one] you SHOULD call Linus to ask permission!

      Tom

      --
      Someday, I'll have a real sig.
    2. Re:great by Slashcrap · · Score: 1

      to read all the comments of the *nix zealots making fun of MS but actually pissing in their pants fearing there will be less and less unique points to brag about their OS. Well, do not fear! There will be enough things left that windows can't do.

      And what is it about us criticising MS that scares you?

      I mean some of the people here might actually have contributed to Linux/BSD/whatever. They might actually have invested some time in trying to improve it. I can at least understand why they might be sensitive to criticism.

      But you? You just bought a product from a corporation. They're not even paying you. And yet you leap to their defence? That is truly pathetic.

      Do you dream about Bill himself stumbling upon some of your comments and thinking, "Wow this guy really knows how to market our products. I'll send my private jet for him right away and make him head of marketing."? Are the sheets all sticky when you wake up afterwards?

      Do keep posting though. I like nothing better than to savour the fear of corporate cocksmokers. It's like a fine wine.

    3. Re:great by Eric604 · · Score: 1
      And what is it about us criticising MS that scares you?

      The duplicate comments.

      You just bought a product from a corporation. They're not even paying you. And yet you leap to their defence?

      You really assume too much, but you're right in that they're not paying me.

      I was just observing, you know that I am right if you don't read more than there is. I used to be a zealot myself, that's why it's so great to read all the comments of the *nix zealots making fun of MS. One day when you're old and wise you'll understand.

  62. I can always depend on Microsoft to innovate! by Anonymous Coward · · Score: 0



    I can always depend on Microsoft to innovate! God! I! Love! Microsoft!

  63. More Dupe than you think by TrentL · · Score: 3, Informative

    I recall this Slashdot story from several years ago (damn, I can't believe a Slashdot headline has stayed with me that long). Sadly, the links referenced in the article are broken, so I don't recall exactly what it was about.

    1. Re:More Dupe than you think by arivanov · · Score: 1, Interesting

      That was about something more similar to hardlinks IIRC.

      I think it was only as an idea that was supposed to be part of XP. It was supposed to be able to replace multiple copies of the same file with a single reference with an increased refcount.

      I do not think it ended up in the shipping version.

      Even if it did it would have never given XP/2003 the same advantages as link reference counting gives to Unixes because of the differences in the locking model. Actually dunno... With some changes in the default way Windoze installs and deinstalls stuff it may have ended up being useful.

      --
      Baker's Law: Misery no longer loves company. Nowadays it insists on it
      http://www.sigsegv.cx/
    2. Re:More Dupe than you think by Firehawke · · Score: 2, Informative

      It's there, but they really didn't make much noise about it. I didn't even realize the tools were there until I found a webpage about it a few years back.

      is one place to start.

      Still, it'll be very nice to have real symlinks instead of shortcuts. It's what the shortcuts should have been all along.

    3. Re:More Dupe than you think by jp10558 · · Score: 1

      You know, I have studied symlinks and hardlinks, and I know what a shortcut is, but could you explain the actual difference between shortcuts and symlinks?

      --
      Opera, Proxomitron-Grypen,GPG 0x0A1C6EE3
    4. Re:More Dupe than you think by Bronster · · Score: 1

      You know, I have studied symlinks and hardlinks, and I know what a shortcut is, but could you explain the actual difference between shortcuts and symlinks?

      Shortcuts are more like the .desktop files in KDE - they're a small file which the filesystem layer doesn't understand at all, but the "shell" (windows, kde, etc) loads and then uses the instructions from to do something.

      Symlinks are a filesystem layer thing - your application can open them just as if they were the targetted file, and it's totally transparent. You need to use a different API to see that it's actually a symlink.

  64. only way to improve on slinks is to get rid of FSs by master_p · · Score: 2, Interesting

    The only way to really improve on symlinks is to get rid of file systems, and use a database instead. Symlinks are useful for simulating database views anyway.

    The purpose of using a computer is to manage information, and not binary data. Files are relics of the past. Operating systems should have databases for managing persistence. Benefits whould be tremendous:

    1. files are strongly typed.
    2. user can have views of data.
    3. improved searching.
    4. improved indexing.
    5. transactional logic available to any application.
    6. huge model-view-controller over all data; monolithic applications no longer needed; better distributed environments.
    7. better security.
  65. Not the first time by basilpronoun · · Score: 3, Interesting

    MS have invented symbolic links before.
    http://slashdot.org/article.pl?sid=00/03/02/083321 1&tid=109
    The evidence is no longer on MS's website put you can find it here http://www.spinnwebe.com/contests/innovate/8.php

  66. I think we have a new kind of troll... by Short+Circuit · · Score: 1

    The Plan9 troll, that is.

    Not dissing Plan9; It's clearly relevant as a research OS. But it's not relevant as a commonly-used or even well-known OS.

    1. Re:I think we have a new kind of troll... by DrSkwid · · Score: 1

      nothing new sunshine

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    2. Re:I think we have a new kind of troll... by Short+Circuit · · Score: 1

      I've seen comments on Plan9 before...just not attached to every single OS-theory article like I've seen lately.

    3. Re:I think we have a new kind of troll... by DrSkwid · · Score: 4, Informative

      I try and keep them relevant.
      This story is a case in point. Symlinks are a hack that hides the fact that disk drive based namespaces are a crock. And a crock that's easily solved.

      Unix is 30 years old, Linux copies it. Windows is not in the picture.

      Linux / BSD et. al. offers very little innovation any more. Instead anything new is coming in through the user space and we end up with stuff like GnomeVFS and smb:// handlers.

      The only real place where any real Unix like innovation has occured in recent times was in Bell Labs and the expresssions of that are Plan 9 and Inferno.

      You can try some of the concepts out in user space through http://swtch.com/plan9port/

      "Plan 9 from User Space (aka plan9port) is a port of many Plan 9 programs from their native Plan 9 environment to Unix-like operating systems.
      supported systems : Linux (x86 and PowerPC), FreeBSD (x86), Mac OS X (Power PC), NetBSD (x86), OpenBSD (x86 and PowerPC), SunOS (Sparc)."

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  67. Anything that deletes things by steve_l · · Score: 1

    Any program that deletes files ought to be vaguely symlink aware, as you need to know whether you are following and deleting stuff under symlinks or not.

    Case in point, Apache Ant has symlink awareness for its delete and copy operations (and others) which is a real dog to implement in Java, sun having chosen to hide symlinks and file permissions from the unworthy java developers.

    -steve

    1. Re:Anything that deletes things by Anonymous Coward · · Score: 0

      Case in point, Apache Ant has symlink awareness for its delete and copy operations (and others) which is a real dog to implement in Java, sun having chosen to hide symlinks and file permissions from the unworthy java developers.

      Remember, since Java is supposed to be platform-indepedent, it has to be coded to the lowest common denominator: Windows.

    2. Re:Anything that deletes things by countach · · Score: 1

      >Any program that deletes files ought to be vaguely symlink aware, as you need to know whether you are following
      >and deleting stuff under symlinks or not.

      I don't see why any program needs to know that. Some might sure, but not all.

    3. Re:Anything that deletes things by alexhs · · Score: 1

      Any program that deletes files ought to be vaguely symlink aware, as you need to know whether you are following and deleting stuff under symlinks or not.

      In fact, these are different issues, I suppose it needs some I/O programming background.

      When opening a file, that is :
      int open(const char *pathname, int flags);
      You don't care if pathname is a symlink or not : you're accessing "the real data"

      When deleting a file :
      int unlink(const char *pathname);
      You're deleting the symlink if pathname points to a symlink.

      When deleting a directory :
      int rmdir(const char *pathname);
      Deletion won't work if pathname points to a symlink : a symlink is always a file, even when pointing to a directory.

      Therefore you might say, I need to this point to know if this is a directory or a symlink ! Right, but you also need to know if this a directory or a file in the first place ! So you use stat for all that :
      int stat(const char *file_name, struct stat *buf);

      In other words, when modifying a file, you don't need to know at all if a pathname points to a file or a symlink.

      When doing file management, you need to, but you're checking anyway because of the file / directory difference.

      --
      I have discovered a truly marvelous proof of killer sig, which this margin is too narrow to contain.
    4. Re:Anything that deletes things by steve_l · · Score: 1

      I guess you are right.

      Some early versions of Ant did Bad Things to people's filesys as you could send a pattern to delete stuff with a nested fileset dir="build" includes="**/*" that actually forced a recursive enum of everything (and an exclusion of the default excluded files, things like CVS and SVN metadata). When that runs through a symlink, and would happily follow it and delete stuff in other places.

      now some magic manages to detect a symlink even though there is no official API Call for it, and you can ask whether or not to follow symlinks.

  68. I don't use windows by bicho · · Score: 1

    as much as before but it would be cool if there could be interfilesystem links.
    I one could do a link like

    D:\ to C:\mnt\D

    you could get a more unixlike hierarchy

    --

    errera hunamum ets
    1. Re:I don't use windows by Ritchie70 · · Score: 1

      You can do this now.

      For your example,

      mkdir c:\mnt
      mkdir c:\mnt\d

      In Computer Management, go to Disk management, right-click on the d:\ drive, lick Drive Letter and Paths..., click on Add, type c:\mnt\d into the edit box, click on OK.

      --
      The preferred solution is to not have a problem.
    2. Re:I don't use windows by trezor · · Score: 1

      That can allready be done.

      You can't however symlink E:\Movies to D:\Media\Movies. You can only mount entire partitions to a subdir on another partition. Which limits it's usefulness to about zilch.

      --
      Not Buzzword 2.0 compliant. Please speak english.
    3. Re:I don't use windows by Anonymous Coward · · Score: 0

      junction.exe from Sysinternals or linkd.exe from Resource Kit.
      Further you can move the swap to a partition mounted in a folder, install on \sys rather than \windows, renaming \Documents and Settings to \home and \Program Files to \bin. Then blend out drive letters and blend out every folder except your sys partition. Now mount the CDROM to \cdrom, the boot partition to \boot und link \floppy to A:\. Link \etc to \%windir%\system32\drivers\etc, rename tracert to traceroute, ipconfig to ifconfig, ...

      BTDT and having Unixish fun with Windows.

    4. Re:I don't use windows by MykeBNY · · Score: 1

      The thing I hate about this, though, is the Recycle Bin.

      Say I've got two partitions, one as my root C:, and one mounted to C:\stuff. If I don't disable Recycle Bin, anything I delete in C:\stuff will actually be moved to the other partition's Recycle Bin area. Which can get really annoying for multi-gigabyte files.

      Of course, this isn't a problem if you disable Recycle Bin or just selectively use shift-delete, and it's transparent when you're working with small enough files.

  69. Already has this by coolsva · · Score: 2, Informative
    NTFS already has this and more
    Reparse points (like links) http://msdn.microsoft.com/library/default.asp?url= /library/en-us/fileio/fs/reparse_points.asp
    Junctions (to mount file systems) http://msdn.microsoft.com/library/default.asp?url= /library/en-us/fileio/fs/hard_links_and_junctions. asp
    Sparse files (highly underutilized) http://msdn.microsoft.com/library/default.asp?url= /library/en-us/fileio/fs/sparse_files.asp
    and of course the plain old short cuts that are really symbolic links in the traditional unix world.

    I remember architecting a product to implement all unix based functionality in NT (IPC, memory mapped files, etc) and found NT40 to have that and more. Thats the time I really appreciated windows as a OS more mature than Unix.

    The unfortunate part is people still think of DOS/Win95 code base when they think of windows. As a OS, W2K is much more mature in terms of the facilities they offer and as a filesystem, NTFS is way ahead.

    Give me a feature in Unix and Im sure there is an equivalent in NT. Thousands of smart people working at Redmond are not idiots and millions of corporate architects proposing NT based solutions are not stupid either. They propose windows based technologies not just for looks (though end users do appreciate that).

    1. Re:Already has this by trezor · · Score: 3, Insightful

      and of course the plain old short cuts that are really symbolic links in the traditional unix world.

      Try sharing that shortcut over Samba. Didn't work you say? Then, absolutely nothing UNIX-like about it.

      The unfortunate part is people still think of DOS/Win95

      I use Windows XP and it still has lots of shortcomings. However it's multimedia support is waay ahead of Linux, and I use my machine mainly for multimedia. So whatever criticism I may serve, that's based on WinXP and modern Redmond-OSes.

      Give me a feature in Unix and Im sure there is an equivalent in NT.

      • Kernel and network support loading before the GUI?
        You'd think any serious server-OS would implement this...
      • Possible to recover the system without a GUI if needed?
        A reinstall with the textmode interface doesn't count.
      • Modular kernel which can be stripped of unneccesary features?
        For whatever reason, increased security, lightweight editions, added native FS support...

      Just to list a few. I do however have a job to do :-D

      --
      Not Buzzword 2.0 compliant. Please speak english.
    2. Re:Already has this by kosmosik · · Score: 1

      > Give me a feature in Unix and Im sure there is an equivalent in NT.

      Total abstraction of file tree from underlaying hardware? F.e. you have those stupid drive letters in NT. This is retarded.

    3. Re:Already has this by tomstdenis · · Score: 1

      It's multimedia is ahead of Linux? How? First off Linux is just a Kernel.. I suppose you mean a distro?

      Like Gentoo? Oh where can I get a music player? XMMS

      But videos!!?!?!? mplayer

      But games!!! OpenGL + OpenAL [or SDL or OSS or ALSA] ...

      Don't confuse "lack of industry support" for inability. GNU/Linux based desktops like those based off of Gentoo and Debian are QUITE CAPABLE of being entertainment boxes [hint: my movie box that hooks up to my TV in the living room runs Gentoo and is controllable by a website and Perl CGI backend].

      Best part yet, I didn't have to shell out money for the "deluxe web home media edition" of WinXP.

      Tom

      --
      Someday, I'll have a real sig.
    4. Re:Already has this by Anonymous Coward · · Score: 0

      In Windows, you can mount a new volume in any folder, the same way you can in Unix. You are still required to have a C: drive, though.

    5. Re:Already has this by Anonymous Coward · · Score: 2, Informative

      The drive letters are an alias and exist only for the purposes of legacy. Betas of WinFS have shown to completely disable drive letters as they are becoming less and less necessary. What you call C: is really \\.\HardDisk0\Partition0. Sometimes a dialog in Windows 2000 or XP slips up and actually displays the long full name instead of the aliased drive.

      Now, with Windows 2000 and XP you might not be able to escape having a C: drive, as the OS expects it. But anything other drive that you add, including optical drives, can be mounted within that file system. I currently have three partitions and two optical drives. They are mounted as follows:

      C:\
      C:\Swap
      C:\Documents and Settings\
      C:\DVD
      C:\CD-RW

    6. Re:Already has this by Anonymous Coward · · Score: 0

      I remember architecting a product to implement all unix based functionality in NT (IPC, memory mapped files, etc) and found NT40 to have that and more

      So obviously you are a liar since NT lacks a lot of Unix features.
      For example, a proper shell or real pipes.

      As a OS, W2K is much more mature in terms of the facilities they offer and as a filesystem, NTFS is way ahead.
      Give me a feature in Unix and Im sure there is an equivalent in NT


      What a moron. I say : a FS that does not need defragmenting.
      There, now go back to your hole.
      NTFS way ahead ? How moron can you be ?
      Oh wait, forgot NT : proper privilege separation.
      There, now you can definitely go back to your hole, MS shill.

    7. Re:Already has this by zippthorne · · Score: 1

      Reading those, the big question, "How do I do x" was not presented. They read like whitepaper announcements of "things that are possible, but don't actually ask us to do them"

      What is the windows equivalent of :

      1) ln -s targetdir linkname
      2) ln targetdir hardlinkname
      3) mount blockdevice dir
      4) mount --bind olddir newdir
      5) cp --sparse=always FileWithLotsofZeroBytes SparsifiedVersionofThatFile

      I realize that those are just utility implemenations of functionality that is present in the kernel, but nevertheless they are ways in userspace to use that functionality. Not being a programmer, I'm interested in how I can use these tools.

      --
      Can you be Even More Awesome?!
    8. Re:Already has this by trezor · · Score: 1

      When I said "Linux" I meant your average pick-any distro, as all of them run some sort of X on top with Gnome or KDE on top of them (in most cases).

      In Windows, open a video-file. Instant overlay-only TV-output. Seamless support as I'd like to call it.

      In Linux. Make a custom x-config-file. Then make a separate launch file for mplayer, spawning it in a second x-session with your new custom file config-file. This new mplayer session then in turn lacks any player-controls on your main display unless you want it overlapping your video output, leaving you only with shortcut keys and 5 second-a-time skipping. A lot more work, a lot less functional.

      Even though Linux does tons of thing well, there are clearly points which needs improvement. But that'll need a total rewrite of X, and I can't say I see that happening anytime soon. That's pretty obvious to anyone not entirely zealous about OSes.

      --
      Not Buzzword 2.0 compliant. Please speak english.
    9. Re:Already has this by 16777216 · · Score: 1

      added native FS support... I found a driver forXP that lets me read and write to ext2/3 filesystems, I wish my linux dostro would let me do the same without harming my data. And yes I know "ext2/3 is open thus easy to make a driver for while NTFS is closed and has to be poked prodded finagled and all other kinds of crap just to half work" I am in no way downing the people that are trying to make NTFS support for linux I just wished it worked now.

      --
      I am. Lower your shields and power down your weapons, they are useless. Your biological and technological distinctivenes
    10. Re:Already has this by wandazulu · · Score: 1

      Yes, but how do you use junctions? What tools are available? I had to download a freeware program just to set them up.

      The other downside is that you can't protect yourself from recursion; depending on how you set it up, your "dir /s whatever" command will never return.

    11. Re:Already has this by tomstdenis · · Score: 1

      "In Linux. Make a custom x-config-file. Then make a separate launch file for mplayer, spawning it in a second x-session with your new custom file config-file. This new mplayer session then in turn lacks any player-controls on your main display unless you want it overlapping your video output, leaving you only with shortcut keys and 5 second-a-time skipping. A lot more work, a lot less functional."

      What?

      Ever look at gmplayer? It's the GTK front-end for mplayer that COMES WITH MPLAYER.

      I think you ought to read a man page or two as well

      mplayer -fs mymovie.avi

      Is about as complex as it gets for most 4:3 aspect avi files [for instance]. Where mplayer beats WMP is the amount of control. Full screen? caching? aspect ratio [movie and screen]? re-encode it? etc...

      mplayer also is portable. What you call "complexity" I call "oh, it DOES work on my amd64 in 64-bit mode" or "it does work on my PPC box running BSD!" etc...

      WMP certainly works fine as a 32-bit x86 windows only media player [with annoying ads and other lockdowns].

      Whereas mplayer works fine as a portable media player capable of using more codecs than WMP [out of the box] without the annoying ads/lockdowns and with more fine control over the media.

      Tom

      --
      Someday, I'll have a real sig.
    12. Re:Already has this by innate · · Score: 1

      and of course the plain old short cuts that are really symbolic links in the traditional unix world.

      That is the whole point of the FA. Shortcuts are brain-damaged symlinks, at best, because they are a shell feature not a filesystem feature. NTFS already has an equivalent to hard links, but as with Unix, those are not nearly as convenient as symbolic links. Now Microsoft is finally catching up.

      --
      No, I don't want to explore the Recycle Bin.
    13. Re:Already has this by trezor · · Score: 1

      You missed a "overlay-only" part of the playing process. I want the player to act as a normal window on my monitor, and to show fullscreen on my TV without any more resizing than necassary. A mplayer -> fullscreen PC -> downscale to TV is what is one scaling process in Windows. Overlay to TV, simple as that. I don't want to lose any more image quality than the compression has already taken, thank you.

      Windows does this fine. X doesn't. And if custom built kernel, X and mplayer ain't enough to get it going, it's definitely not "seamless". Don't respond like I'm a newb please. I know how to code, I know how to script, I do compile stuff and I can find my way around linux pretty well.

      Despite your attempts to convince me this is a no-brainer, it is in fact next to impossible in linux. At least with the graphics cards I've had. I'm not saying linux sucks. In fact I started with saying there are tons of things it does well. I do however say that this is one of the things Windows does waaaay better. Live with it.

      Improve that and I might consider switching.

      --
      Not Buzzword 2.0 compliant. Please speak english.
    14. Re:Already has this by tomstdenis · · Score: 1

      I don't get what you mean by "overlay to TV". You mean you want the program to display on your TV and then have your normal apps on your display? ... um last I checked X supports multiple displays. So you should be able to just start mplayer and move the window over to the other display [e.g. your TV]. That's up to your video adapter driver [e.g. not X and specially not Linux] to sort out.

      My media box is just that, a media box. It isn't a home PC or whatever that I also sit at. so in my case the primary display is the TV. As for "convince you to switch" ... if the only reason you won't switch to an OSS operating system [and userland tools] is because WMP is "user friendly" then you probably don't see the tangible benefits to switching and you're probably better off.

      In my case the first and foremost are the development tools. I live in bash, I write small scripts for everything [as I develop my software]. I use it to automate all sorts of things [e.g. import code into a new tree, etc]. The development tools are highly professional and don't just "fit the bill" they surpass it [e.g. gcc vs. msvc].

      Then there is the selection of tools and apps. there are so many to pick from in the OSS world vs. what you can scrounge for in the Win32 world. Most win32 apps are commercial or shareware or nagware or just plain fucking annoying because everyone and their brother is trying to eek out a living as a "coder". The S/N ratio is so high that when a good tool for win32 is developed it's easy to miss.

      Then there is the actual act of paying for win32. I bought a new PC, like fuck I want to shell out the 400$ [it's 399$ for a full edition of WinXP pro] so I can put an OS on it that is half-ass and developer angry.

      Of course win32 is soooo good right, that's why the first thing you do [after the reboot-patch-reboot cycles] is install 100s of third party tools. E.g. divx codec, messenger software, shell, cygwin, anti-virus, anti-spyware, anti-omg-make-it-stopware, etc...

      So you pay $400 for windows [or pirate, which is just as stupid] then "enhance it" by adding tools to make the OS actually useful for the average professional... Or you can grab a gentoo CD for all of 50 cents, spend the day installing it exactly like you want and end up with professional tools that do more than look pretty [e.g. MSFT's C compiler is competitive if this is 1995].

      And yes, there are compromises. Lack of games [developers fault not OSS]. Lack of drivers [manufacturers fault not OSS] and lack of shiny buttons [windows fault, I can navigate a filesystem just fine without 3D acceleration...].

      Tom

      --
      Someday, I'll have a real sig.
    15. Re:Already has this by jimicus · · Score: 1

      Possible to recover the system without a GUI if needed?
      Yes

      Modular kernel which can be stripped of unneccesary features?
      Yes

      Does what you tell it to reliably and regularly rather than suddenly deciding one day to do things totally differently for no apparent reason?

      Not sure about that one. XP's better, mind. That being said, I got fed up of waiting. Linux doesn't have that problem, and so far neither does MacOS.

    16. Re:Already has this by cecom · · Score: 1

      Give me a feature in Unix and Im sure there is an equivalent in NT. Thousands of smart people working at Redmond are not idiots and millions of corporate architects proposing NT based solutions are not stupid either. They propose windows based technologies not just for looks (though end users do appreciate that).

      That's what I used to think.

      Here's a feature for you: the SUID bit. NT has nothing like it. Instead, one has to resort to awful complications (services talking through pipes, storing encrypted password, etc, etc). I've been there and it sucks. Terrible complexity leading to terrible bugs.

      Your suggestion about the millions of corporate architects not being stupid is not serious. Corporate policy is not determined by technical reasons. Support contracts, availability of trained personnel, integration with 99% of the desktops, etc, etc.

    17. Re:Already has this by kbielefe · · Score: 1
      Have you asked on the mplayer mailing list about this? If I understand your requirements correctly, it seems like it would be a matter of creating an option that would place the controls for gmplayer on a different display than the video output. This capability is built into X -- no redesign needed. The cinelerra video editor does this with their compositor window, but it must be built into the application code in order for it to work. I don't have TV out, so I don't know for sure if cinelerra supports that the way you want (I believe it does), but they do provide an option for ieee1394 (firewire) display that behaves the way you are describing. There is no intrinsic reason why mplayer could not do the same, and for all I know, it already does. It sounds like you have some coding skills, perhaps you could use cinelerra as an example to fix your personal build of gmplayer and submit a patch. At any rate, filing a feature request with the gmplayer developers is bound to be more effective than filing it on slashdot.

      I see your point though about the ease of configuring multimedia applications. Linux is a highly capable system for multimedia work. Almost anything you want to do with it is within easy reach of a skilled developer. That is what makes it so attractive for companies like ILM, Dreamworks, etc. However, most of it is not easy at all for the average user. There are some good attempts at dumbing down the multimedia interfaces to WMP's level, like kaffeine and totem, but I don't know if either of those does what you are describing.

      It's unfortunate that multimedia-focused Linux distributions haven't received more support or publicity. One of those might suit your style better. Dynebolic is one of my favorite Live CDs.

      --
      This space intentionally left blank.
    18. Re:Already has this by Anonymous Coward · · Score: 0

      1. This is a new feature, so I don't know how it will work, but since it's only included for POSIX compatibility, "ln -s" will work as expected.

      2. The "ln" command works of course, but "fsutil hardlink create target src" works also.

      3. mountvol dir devicename

      4. linkd olddir newdir

      5. While the copy command doesn't have explicit support for sparse files, you can just use compact to compress any file and it will compress the compressible data, while not storing blocks of zeros. You can use fsutil to explicitly tell which parts of a file should be sparse.

      dom

  70. Not at all by Anonymous Coward · · Score: 0

    File race conditions come from dumbasses doing a stat() on a file before creating it:

            rc = stat( filename &statbuf );
            if ( rc == -1 && errno == ENOENT )
            {
                    fd = open( filename, O_RDWR | O_CREAT, 0600 );
            }

    Any decent programmer would do this:

            fd = open( filename, O_RDWR | O_CREAT | O_EXCL, 0600 );

    All in one line, to boot.

  71. Symlinks were a BSD invention by Per+Abrahamsen · · Score: 3, Informative

    That the Research Unix guys didn't add it to Plan9 doesn't have to mean anything else than they suffer from the NIH syndrome. I don't believe symbolic links were ever a part of Research Unix.

    The commercial product, SysV, got symbolic links, but they had to compete in the real world.

  72. Anyone know why its taken them this long? by jonwil · · Score: 1

    Both Mac (through aliases) and Unix had symbolic links since forever. Why did it take microsoft so long to catch up?

    Was it just microsoft not seeing the need to implement this or was there some technical/usability issue involved?

  73. insert hipocritical sentiment here by tod_miller · · Score: 1

    yet it seems MS is not allowed to add a feature unless they thought of it themselves.

    While at the same time using licensing, proprietary code and patents to destroy real innovation by cutting off the base of the work, fund SCO to try and rip apart linux, yet never actually public admit to this.

    That is what pisses me off, and continues to piss me off is that no reporter worth his salt has reported this.

    Microsoft will litigate the hell out of projects that make linux too useful or easy to migrate within a windows shop. *cough* samba *cough*.

    They also bundle things up - so they have control of key functionality. Name one consumer area of computing where microsoft doesn't bundle and destroy, against a competitor?

    Even word/frontpage against dreamweaver.

    I can only hope someone takes control of GIMP and NVU comes up with the goods so Adobe can go fusk themselves with their photoshop, 'digital negative' and now macromedia bumf.

    GIMP needs a release that is gimp, but with less buttons, and less advanced features, and MORE basic features.

    And programatic brushes (procedural brushes). OMFG I would even write those if it wasn't written in an ancient programming language. bah.

    The GIMP or K's art package, I will check them out again tonight, and see how they fair.

    --
    #hostfile 0.0.0.0 primidi.com 0.0.0.0 www.primidi.com 0.0.0.0 radio.weblogs.com
    1. Re:insert hipocritical sentiment here by man_of_mr_e · · Score: 1

      I'm curious. When has Microsoft ever litigated against an open source project? Certainly not Samba, as you claim.

      I keep hearing people say stuff like this, but I don't recall it ever happening.

    2. Re:insert hipocritical sentiment here by tod_miller · · Score: 1

      Microsoft -> $ -> SCO -> $ -> Linux companies i.e. IBM

      Anything else? No SAMBA it was done by scaring the people into licenses and stuff, I forget, but I do not say they litigated against them, but they tried to stop it.

      You should read slashdot sometime ;-) :^)

      --
      #hostfile 0.0.0.0 primidi.com 0.0.0.0 www.primidi.com 0.0.0.0 radio.weblogs.com
  74. So what's the patent number?? by doublem · · Score: 1

    Anyone have the link to Microsoft's patent on this technology?

    You know they have one. You just know they patented some twist of how they do this that's different than how UNIX does it, but it's worded so vaguely that it could apply to UNIX if a lawyer wanted to read it that way.

    --
    "Live Free or Die." Don't like it? Then keep out of the USA
  75. I sorta have one already... by utexaspunk · · Score: 1

    So I have a directory on my Win2K box named "d:\collected", and in that I have directories for all the various items I have collected- video, music, pictures, software, etc. SOMEHOW, I managed to create a folder named "collected\music" that resides at the root level of the D drive. It just points directly to the "d:\collected\music" directory. If I try to delete it, I'm pretty sure it will delete my music collection, so I don't want to do that. If I try to rename it and delete the "\", it tells me "Cannot rename music: You cannot specify a different folder or disk when you rename a file or folder". If I try to rename it without removing the "\", it says a filename cannot contain the "\" character. So, basically I've just left it there. It's only really a nuisance when I run WinDirStat, because it ends up showing the music directory twice. Anyone know how to get rid of it?

    1. Re:I sorta have one already... by lscotte · · Score: 1

      You really should just delete all that illegally downloaded content before the RIAA and MPAA finds you.

      --
      This post is licensed under the Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License.
    2. Re:I sorta have one already... by UncleFluffy · · Score: 1

      Anyone know how to get rid of it?

      Try creating a new directory and copy the contents into that. Then nuke the old one.

      --

      What would Lemmy do?

    3. Re:I sorta have one already... by utexaspunk · · Score: 1

      get this- I rename the "music" directory inside the "collected" folder to "music2". Then I go back to the root folder and delete "collected\music" and it says "Cannot delete file: Cannot read from the source file or disk". So I go back into the "collected" folder and create a folder called "music", then go back out and try deleting "collected\music". Lo and behold, the "music" folder disappears, but "collected\music" remains! It won't go away! aaagh!

  76. Excellent by Karem+Lore · · Score: 1

    I have been waiting for years for this, this is an excellent innovation by M$...oh wait...I use linux...

    --
    When all is said and done, nothing changes...
  77. The Fix: Aliases by Rosyna · · Score: 3, Informative

    Yes, the Mac OS had none of those problems with Aliases. I guess that's what happens when you design an OS from the ground up that doesn't use paths to reference everything. In fact, for a very long time there was no way to get a path in the Mac OS. OS X changed all that and now many programs are very fragile (like Preview).

    1. Re:The Fix: Aliases by ChristTrekker · · Score: 1

      Aliases aren't perfect - they "broke" under MacOS X. The problem? They appear as "just a file" from a Unix shell. Apple should have found some way for an alias to appear as a symlink from the shell, and a symlink to appear as an alias in the Finder. In the classic MacOS, aliases were wonderful - they always "just worked" just like you'd expect.

    2. Re:The Fix: Aliases by SilentTristero · · Score: 1

      Have you ever tried to create an alias on OSX programmatically? I have 750 lines of code just to do that, handling all the cases of OS9 & OSX, UTF8 filesystems, making sure the Finder updates to show it properly... and that's not even counting the Apple Events code from MoreFilesX that's linked in! All that to just emulate
          symlink(const char *oldpath, const char *newpath).

      Sorry, OSX aliases are, from a programmer perspective, about the worst nightmare I could imagine. Other than of course not being allowed to use paths to get to files, of course.

    3. Re:The Fix: Aliases by hackstraw · · Score: 1

      What actually is an alias, and what good is it?

      I just created my first one, and its weird.

      In the finder it has a little arrow overlay, and looks exactly the same as a symlink. I "aliased" the file and made a symlink to the file. The file is a few bytes of text, and in the finder it shows up as 4 KB, which I guess is the smallest file allocation size. The symlink also uses 4 KB. The finder shows that the file size of the alias is 44 KB. The commandline shows the alias to be 0 bytes, and the symlink to be 15 bytes, and the original file is 451 bytes.

      Is this a GUI version of a symlink and is to be used the same?

      Oh, and yes, aliases are broken from the commandline.

    4. Re:The Fix: Aliases by Anonymous Coward · · Score: 0

      Aliases can handle the file being moved. Symlinks can't. I suspect the file is larger because it contains a copy of the icon resources.

    5. Re:The Fix: Aliases by Rosyna · · Score: 1

      Then I think you're missing something. I make aliases all the time. err = FSNewAlias(NULL, targetFile, &theAlias); Simple as pie, really. If it is too difficult for you, then you're doing it wrong. ;)

    6. Re:The Fix: Aliases by SilentTristero · · Score: 1

      Rosyna wrote: ... use FSNewAlias()...

      That's a start for sure. (Well, part of a start -- assuming you've already dealt with the UTF8/unicode conversion.) But you have to save that alias to the file system in a resource fork, set the type and creator of the alias file to the same as the original, copy the badg resource if the source is a folder rather than a file, set the alias bit on the resulting file... and so on.

      And if you're making aliases for things that don't exist yet, you have a whole other set of issues like how to make an FSRef for a nonexistent file.

      Actually we ended up blowing off FSNewAlias() altogether most of the time because it was hard to keep open finder windows in sync and other issues. We ended up sending AppleEvents to the Finder in most cases. That's only about 70 lines, but it can have issues in certain corner cases.

    7. Re:The Fix: Aliases by Rosyna · · Score: 1

      Ah, you were talking about alias *files*. Although not idea what you're going on about UTF8 conversion. Also, creating Alias files is oddly not documented anywhere.

  78. Re:Ah yes by Anonymous Coward · · Score: 0

    "When shortcuts were invented for Win95 the Win32 API should have been built to treat a shortcut as the object it pointed to."

    Actually OS/2 Warp 3 had them around 1993-94 ( can't quite remember ). They were called shadowed files and folders. Of course when Microsoft used them in Win95 and called them shortcuts they were being innovative. =]

  79. FAT does it too... by spiff42 · · Score: 5, Funny
    NTFS does support hardlinks

    Well. So does FAT, except it is called a crosslink, and aparently scandisk and various disk defragmentation tools do not handle it correctly ;-)

    /Spiff

    1. Re:FAT does it too... by HermanAB · · Score: 1

      Hey - too funny! Actually, I think FAT is unique in that it can have links pointing to multiple destinations. Now that is innovative...

      --
      Oh well, what the hell...
    2. Re:FAT does it too... by sjames · · Score: 1

      That's what happens when dirent and inode get squashed together like MS did. Just a little thought way back in 1980 could have made a much more capable (but still slow) filesystem. Of course, when MS 'invented' DOS, they probably didn't yet understand the filesystem code since they bought it. The original developers hadn't put much thought into FS design because to them it was just a quick and dirty hack.

  80. We should innovate as well... by mcneely.mike · · Score: 1

    How about RedHat Bob, or Suse ME! Or do something weird like bring out a free Office Suite!

    --
    soylentnews.org Go there to enjoy the people!
  81. Wonder if this is a new avenue? by brennz · · Score: 2, Interesting

    I know the UNIX security record relating to symlinks is not unblemished.

    I can't help but be curious - Will this be a new avenue by which to exploit Windows systems? I'm not saying this to troll, or to jump on the "MS security sux fanboi wagon" but rather as a concern.

    This new development has definitely piqued my interest.

  82. This is rich by linforcer · · Score: 3, Funny

    First Microsoft Shell and now this? Looks like MS Linux is nearly becoming a reality!

  83. Reinventing Unix by Tom · · Score: 1

    As I said in this old comment:

    "Given enough time and money, eventually Microsoft will re-invent UNIX." (author unknown)

    Now once they start working on the GUI and come up with something that's more useable, maybe closer to the NeXT or OSX, Microsoft might even have a real Linux competitor!

    --
    Assorted stuff I do sometimes: Lemuria.org
  84. So it's just like the Windows trash can by Anonymous Coward · · Score: 0

    You can only trash and recover files using Explorer, while the shell doesn't know anything about it in both way. Is noone missing the word "consistency" in these cases?

  85. Re:baby with the bathwater by Bastian · · Score: 1

    Symbolic links make the Unix file system non-hierarchical, resulting in multiple valid path names for a given file. This ambiguity is a source of confusion, especially since some shells work overtime to present a consistent view from programs such as pwd, while other programs and the kernel itself do nothing about the problem.

    Situations like directory paths to the same location in the filesystem are the only spot where I can see this abiguity really being a big issue. As long as there's some way for me as a human to tell that one configuration file is just a symlink to another, who cares? Yeah, a less-than-clueful user might make some screw-ups if they're using symlinks improperly, but that's not a compelling argument to me - it could be turned against the delete command, too.

    Why not just take away symlinks to directories? They're really most useful for files, anyway.

  86. Organizational dissonance by Anonymous Coward · · Score: 0

    The shortcut file type was created because the filesystem people and MFC people didn't bother to talk to each other for some reason or another. Windows is full of these inappropiately placed api's because of ignorance, lack of communication and architectural control, or just somebody creating their own little api empires. Probably all three but mostly the middle. Microsoft can't even keep the sape api's consistent across different releases and platforms. The Xbox 360 is really going to be screwed up because of this since the particular api in question is notoriously difficult to use and debug as it is.

    1. Re:Organizational dissonance by ckaminski · · Score: 1

      Half the people responding to this article are either "Unix Invented it First" fanboys, or people who forget that there are still entire generations of Windows platforms out there that are NOT based on NT, and hence have no capability for this sort of feature at all.

  87. What I want to know is... by ModernGeek · · Score: 1

    ... what's the main difference from a symbolic link in Windows Vista, and a normal shortcut from Windows 95/98/2k/Me/XP? With shortcuts you can link a file to another file/drive/folder from another filesystem/server. I think they are just trying to think up things to add to their already small 'feature' list.

    --
    Sig: I stole this sig.
    1. Re:What I want to know is... by autOmato · · Score: 1

      Shortcuts are not as transparent as symlinks. For instance shortcuts have to have the .lnk extension.

    2. Re:What I want to know is... by Philip+K+Dickhead · · Score: 1

      Shortcuts are location ponters for teh Explorer Shell. Outside of Explorer, they are just ordinary files. You can't cp anything to a .lnk file!

      --
      "Speaking the Truth in times of universal deceit is a revolutionary act." -- George Orwell
  88. So by suman28 · · Score: 1

    In other words, shortcuts will work like they are supposed to now. I have always wondered why Microsoft screwed that up.

  89. Re:Ah yes by utnow · · Score: 1

    I'm pretty sure Apple had 'aliases' in MacOS somewhere before MS had shortcuts in Windows as well.

  90. Why only server? by ichigo+2.0 · · Score: 1

    Why are power users left out? This is a potentially useful feature for everyone, and they only put it in Longhorn server? I know some users would do completely idiotic things, like somehow manage to move the swapfile on a floppy and symlink to it while trying to burn some mp3's, but why not include it disabled by default and leave an entry in the registry to enable it?

    1. Re:Why only server? by LuckyStarr · · Score: 1

      I don't understand how you can enable kernel-level features via the registry.

      --
      Meme of the day: I browse "Disable Sigs: Checked". So should you.
    2. Re:Why only server? by ichigo+2.0 · · Score: 1

      Well the registry setting doesn't have to remove symlink support from the kernel, it only needs to prevent/allow users from creating symlinks. Not sure why it would need to be a kernel feature, isn't this something that belongs in the filesystem? IANA kernel programmer though.

    3. Re:Why only server? by LuckyStarr · · Score: 1

      isn't this something that belongs in the filesystem?

      Filesystems are generally(*) implemented in kernelspace.

      (*) HURD and FUSE excluded.

      --
      Meme of the day: I browse "Disable Sigs: Checked". So should you.
  91. Not suprising - any idea what NTFS 5 is capable by soul_hk · · Score: 2, Informative

    It seems people are forgetting about the "almost there" aspects of NTFS 5 ..

    NTFS junction points are useful for alternate mounting.
    The point of some key Windows Services are built for exactly this purpose .. Distributed Link Tracking and Object Identifiers
    Reparse points are handy too ... http://support.microsoft.com/default.aspx?scid=kb; EN-US;q205524

    NTFS is a great file system, you just need to read the documentation..

  92. Nevermind by ModernGeek · · Score: 1

    I read the article and it answered my question. Now I have a new one: Why couldn't an app just open the .lnk file, find out the destination, and then follow through in the first place? They are only changing the behavior of something that already works fine. Microsoft seems to be doing this with a lot of things, and simply calling behavior changes new featues. I mean in Vista you click start, and press R to select run, but realize that an R is put into a search field built into the start menu. How is making minor changes to the behavior of the OS/Shell make the company innovative? People don't like change, and long time windows users had a hard time moving to XP, but the behavior was similar to that in 98/2000, so people were able to accept it. Now it's like they are saying, "We didn't screw it up this time, lets try again with delayed releases and redesigning the interface to be even more resource intensive and clunky than before!" It seems like they are taking their time to make sure every dialog is updated and completely different from their previous generation of software, so that when it comes out, it will all be the same under the hood as Windows NT 4 with tweaks to make it run a little more efficient on the latest hardware, and it will look so malformed and act so sparatic, it will seem like a new product all together.

    --
    Sig: I stole this sig.
    1. Re:Nevermind by bcat24 · · Score: 5, Insightful

      The whole point of symbolic links is that they're transparent. That way, an application doesn't have to parse a .lnk file. The OS handles reading/writing from the correct file. Real file symlinks have been missing from Windows for too long, I think it's about time they were added. (Whether or not anybody actually uses them instead of shortcuts is another story.)

    2. Re:Nevermind by avdp · · Score: 3, Informative

      Yes, you could essentially re-implement Explorer in every app written by having them handle the *.lnk files the way Explorer does. It sort of is counterproductive. It is much cleaner to have that in the filesystem (or at least the MS APIs to open files) so that it is transparent to apps. Frankly the way the shortcut thing was implemented is a ugly hack. I figured what happened is that they wanted the symlink concept, but didn't want to (or couldn't) change the filesystem. Looks like they're finally (10 years later) decided to do it right.

      As far as users are concerned, I suspect they won't know/see the difference. Creating symlinks will just work like creating shortcuts.

    3. Re:Nevermind by networkBoy · · Score: 1

      I just wonder what they will call them (akin to frontpage calling an anchor a bookmark).
      -nB

      --
      whois gawk date unzip strip find touch finger mount join nice man top fsck grep eject more yes exit umount sleep dump
    4. Re:Nevermind by TheGSRGuy · · Score: 1

      Then what is the big benefit that I, the end-user will see? Is navigation going to be faster? Will files load more quickly? I need some clarification, please.

    5. Re:Nevermind by AVryhof · · Score: 1

      Isn't that roughly what Win9x "Long Filenames" did?

      Think about it....MS had Symbolic links before they even knew it...how's that for innovative?

    6. Re:Nevermind by Neoncow · · Score: 1
      Developers spend less time re-inventing the wheel and use a common implmentation of an often used function. You don't see the benefit to this?

      It means that developers can spend more time on implementing features. The developers will spend less time n implementing these common actions. They will spedn less time debugging that code. You will have less worry about the security of their homebrew code (assuming Microsoft's implementation is secure).

    7. Re:Nevermind by mallardtheduck · · Score: 1

      Well, I still find that in some windows apps, when you double click a shortcut in the open dialog, the app attempts to open the .lnk file, instead of following it, so hopefully that sort of behavior should be fixed.

    8. Re:Nevermind by NetRAVEN5000 · · Score: 1
      "Whether or not anybody actually uses them instead of shortcuts is another story."

      I think people will. At least some of them, anyways. They're pretty useful in certain cases - say if I want, for example, the "Program Files" folder or the "Games" folder to be just a pointer to a folder on another hard drive - or if I have multiple versions of an app I'm programming in C++ on my hard drive and I want the folder "C++App-latest" to take me to the latest version without me having to remember the latest version number.

    9. Re:Nevermind by NetRAVEN5000 · · Score: 1
      "Creating symlinks will just work like creating shortcuts."

      No. A symlink lets programs work with the file/folder it points to. Say the "C:\My Stuff" folder is a symlink to the "D:\stuff" folder. If you run a program you can tell it to look for a file in the "C:\My Stuff" folder and it'll look for that file in the "D:\stuff" folder. AFAIK links don't work that way.

    10. Re:Nevermind by avdp · · Score: 1

      I think you missed my point. If you read my response again, you will see that I specifically said that from an end-user perspective, creating a symlink will be the same. The key words here are end-user and creating. I am fully aware of how both work, and their differences. But end-users won't, as it should be.

      PS: your example is pretty bad. Symlinks don't work across drives/filesystems (although, who knows, MS might find a way).

    11. Re:Nevermind by avdp · · Score: 1

      I take that PS back. It's hardlinks that can't cross physical devices. My bad.

    12. Re:Nevermind by NetRAVEN5000 · · Score: 1
      Well, what I was saying was that it actually would be different from an end-user perspective. Maybe not a whole lot, but a little bit.

      Say I had an app that always wanted to save files in a special directory created by the program (many older apps seem to have this tendency - I notice it when I make cards with Print Shop Deluxe). But I want it to always save to a different directory, without having to find that directory each time I save - I know where it is, but I don't want to have to navigate to it every time I save. I could symlink so that directory is a pointer to the directory I want it to save in.

      I use this all the time in Linux - whenever I upgrade to a newer kernel, I don't want to just delete the old sources so I keep them and have /usr/src/linux as a pointer to the latest one and then keep all the other ones in case I decide to revert back to them.

      So yeah, most end-users wouldn't notice the difference, but some of them would.

    13. Re:Nevermind by Anonymous Coward · · Score: 0

      I use hardlinks for this. It's also a nice way of moving your "documents and settings" folder or similar if you forgot to put it on another partition when you installed the OS.

      To hardlink a folder, either roll an app yourself or use russinovich's excellent junction tool.
      sysinternals.com

      To do it for a single file, "fsutil hardlink create" should do the trick.

    14. Re:Nevermind by Anonymous Coward · · Score: 0

      Oops, my bad.
      russinovich's junction IS directory symlinks (sort of.)
      Uses NTFS junctions.

  93. Symlinks are nice... by Carcass666 · · Score: 1

    But what about an executable flag?

    1. Re:Symlinks are nice... by SuiteSisterMary · · Score: 1

      NT has had pretty extensive ACL capabilities since it's very first version.

      --
      Vintage computer games and RPG books available. Email me if you're interested.
    2. Re:Symlinks are nice... by Carcass666 · · Score: 1
      NT has had pretty extensive ACL capabilities since it's very first version.

      True, and my comment was poorly phrased. I wish execute permission was better implemented by installation programs and the OS itself (namely, more emphasis on requiring explicit permissions for a program to run as opposed to letting "Read & Execute" trickle down throughout c:\Program Files...)

    3. Re:Symlinks are nice... by SuiteSisterMary · · Score: 1

      Ah. Well, you can always turn off inheritable permissions....

      --
      Vintage computer games and RPG books available. Email me if you're interested.
  94. Re:FOUR, er FIVE symlink styles, all kinda *wrong* by Anonymous Coward · · Score: 0

    Mac OS X has symlinks, hardlinks, mounts, and aliases (two kinds?). As a practical matter, it doesn't seem to be a huge problem.

  95. Had a feeling by jav1231 · · Score: 1

    I had a feeling this was coming eventually. This is one feature that UNIX really kicked Windows' but with. Run out of space on a critical volume and you could always link to a new one. As others have noted, this is more of Microsoft catching up. Like AD, some Window's-centric noob will be touting this as a great new thing.

    1. Re:Had a feeling by soulhuntre · · Score: 1

      Run out of space on a critical volume and you could always link to a new one.

      You've been able to do this on windows for YEARS. Mounting a new HD as a folder under an old HD is trivial.

      --
      --> Fight tyranny and repression.... read /. at -1!
    2. Re:Had a feeling by jav1231 · · Score: 1

      But linking would allow you to link to an existing volume that may be in use but has more room. Good point, though.

  96. yeah! and also... by tuxtastic · · Score: 0

    the vista kernel is codenamed winux (sounded better than wunix or winbsd)

  97. Re:only way to improve on slinks is to get rid of by alexhs · · Score: 1

    I agree to some extent.

    But... A database is a file system, and a filesystem is a database.
    You're in fact opposing hierarchical data organization to relational data organization.

    I suppose Reiser4 is the way to go...

    --
    I have discovered a truly marvelous proof of killer sig, which this margin is too narrow to contain.
  98. Re:Ah yes by lexarius · · Score: 1

    Two types of links that work in different ways? I don't think anyone will stand for that. Do you suppose they'll call them 'hard links' and 'soft links'?

  99. New Slogans by lbmouse · · Score: 1

    Microsoft: "Who Do You Want Us To Copy Today?"
     
    -or-
     
    Microsoft: "Innovation Through Imitation and Intimidation"

    1. Re:New Slogans by richie2000 · · Score: 1

      Microsoft: "Freedom to fuck you over in new and innovative ways." and the follow-up ad campaign: "No, we're just kidding. We'll just fuck you over in the same old way. Again."

      --
      Money for nothing, pix for free
  100. Re:FOUR, er FIVE symlink styles, all kinda *wrong* by interiot · · Score: 1
    You forgot one: there are two kinds of shortcuts, Windows 3.1 style .pif files, and more recent .lnk files.

    But isn't "subst" the same thing as mapping a directory to a drive letter? Isn't it just a different interface to the same functionality?

  101. Vista Will Probably Be BSD-Based by Anonymous Coward · · Score: 4, Interesting

    This is just one more clue that Microsoft has given up on the Windows code base, and that Vista will be based on BSD code.

    To review the previous clues:

    First, there was Microsoft's announcement that Vista (Longhorn) will use UNIX-like User Permissions:

    See Longhorn to use UNIX-like User Permissions

    Why would Microsoft do that, when even many Linux supporters agree that Windows permissions are finer grained? But if the new Windows is BSD-based, Microsoft would be forced to do that, or face rewriting a lot of the underlying BSD code.

    Second, there was Microsoft's announcement that Unix compatibility will be "built in" to Vista:

    See: Microsoft to Stop Releasing Services for Unix

    Third, there is the fact that Microsoft ported .Net to BSD, as well as pushing for other software to be released under a BSD license ("All the better to steal it, my dear.").

    Fourth, there was Steve Ballmer talking about the Vista "reset" which started around 18 months ago.

    See: Ballmer Pushes Microsoft Innovation, Talks Vista Reset

    Does anyone really think that Microsoft could succeed in doing a major rearchitecturing of the Windows code now, in only 18 months, after they had tried and failed to do so many times over the last decade?

    Besides, when has Microsoft ever shown the confidence or ability to succeed on their own? DOS, Windows NT, Internet Explorer, and .Net, were all based on other companies' products, or were developed by teams hired from outside.

    And now we have this new report that another basic feature of Unix, symbolic links, will be part of Vista.

    Given all this evidence, I am fairly convinced that Vista will be based on one of the Open Source BSD distributions. Unlike Apple, however, Microsoft will probably try to keep it a secret, and claim it as their own innovation.

    What will be the result?

    On one hand, a BSD-based Vista might be a good thing, since it will result in a more stable, and less virus-prone Windows.

    On the other hand, if Microsoft remains true to their history, they'll just screw it up with all the lock-in features they'll add on top. Like the VMS-and-OS/2-based Windows NT, which started out strong (version 3.51) then gradually degraded, I expect the benefits of a BSD-based Vista to be temporary.

    Then again, Microsoft is just playing for time, as they continue their strategy of locking in the Internet. Thus, they only need Windows to be better for long eneough to fool their customers, again, while they tie them up with a new set of decommoditized protocols (.Net, Palladium, DRM, Windows Media, Office 12, and so on).

    1. Re:Vista Will Probably Be BSD-Based by LO0G · · Score: 3, Insightful

      Man, I LOVE /. posters.

      So you have three reports on /. One of them describes a feature that's been in Windows since NT 3.1 (and exposed as a public API since Windows 2000) (symlinks). The other describes an existing feature that's been available for Windows since NT 4 and is now apparently being included in the OS base (SFU). And the third that describes a feature that's been available for Windows since NT 3.1 (and made really usable in XP) (limited rights user accounts).

      From these three technologies, all of which are over 10 years old, the poster decides that Microsoft rewrote the Vista OS based on BSD.

      I love this forum :)

    2. Re:Vista Will Probably Be BSD-Based by Poltras · · Score: 2, Interesting

      May I remind you that vistas betas (i like the sound) just are contradicting with the bsd theory? For another note, see previous replier which has a point: everything you said was released thousands of years ago by hebrew microsoft employees.

    3. Re:Vista Will Probably Be BSD-Based by BobPaul · · Score: 1

      AC was posting obvious humor, but complaining about it is acceptable, too, I suppose ;)

    4. Re:Vista Will Probably Be BSD-Based by Anonymous Coward · · Score: 2, Interesting

      Man, I LOVE /. posters.

      And I love how deceptive posts like yours get modded up as "insightful."

      > So you have three reports on /.

      No. There are _four_ report -- one each from PCWorld, EWeek, WindowsITPro, and the current one from Ward Ralston (three of these just happen to be linked on Slashdot). Plus, there was my fifth point about Microsoft porting .Net to BSD.

      So right off you start trying to deceive your readers.

      And you can't count.

      > One of them describes a feature that's been in Windows since NT 3.1 (and exposed as a public API since Windows 2000) (symlinks).

      First of all, the Windows NT "symlinks" have never been the same as Unix symlinks.

      Second, in the current article, Ward Ralston is talking about symlinks (Unix-style, from the description) as a NEW capability of Vista. Why we he be doing that, if he was talking about the old NT-style symlinks?

      By the way, Ward Ralston is a member of the Windows server team, so I suspect he knows more about it than you.

      > The other describes an existing feature that's been available for Windows since NT 4 and is now apparently being included in the OS base (SFU).

      Again, then why did Microsoft announce that they were SHUTTING DOWN SFU, because the new Unix capabilities would be BUILTIN to Windows?

      As stated by Samm DiStasio, director of product management with Microsoft's Windows Server division, "Having Unix interoperability functionality integrated in to the OS (operating system) helps customers to programmatically access Windows and Unix resources at the same time, which is super important and something that couldn't be done with the previous architecture."

      What new architecture would that be? Could it be... BSD?

      I'll give you one thing, you're more capable than the average astroturfer. Your attempts to deflect the issue sounded very believable. If Microsoft had more posters like you, their reputation as an innovator would be secure.

    5. Re:Vista Will Probably Be BSD-Based by moosesocks · · Score: 2, Funny

      does this mean that we can finally say that Windows is dying?

      --
      -- If you try to fail and succeed, which have you done? - Uli's moose
    6. Re:Vista Will Probably Be BSD-Based by Eli+Gottlieb · · Score: 1

      everything you said was released thousands of years ago by hebrew microsoft employees.

      No, it wasn't. A M$ employee, by performing Bill Gates's work, effectively rids him/herself of any Hebrew-ness they may have had in them.

      Shalom!

    7. Re:Vista Will Probably Be BSD-Based by Guy+Harris · · Score: 1
      Again, then why did Microsoft announce that they were SHUTTING DOWN SFU, because the new Unix capabilities would be BUILTIN to Windows?

      Because there's no need to offer SFU as a product if it's bundled with the OS? Note that it could be "bundled with the OS" without the OS being BSD-based.

    8. Re:Vista Will Probably Be BSD-Based by einhverfr · · Score: 1

      I seriously doubt that we are going to see a radically different kernel architecture for future versions of Windows. The VMS-based versions we see today are simply too heavily invested to be thrown out now.

      This being said, I think it is clear that we are seeing a lot of features from BSD and UNIX being added to Vista. And clearly some code is likely to be used either for reference purposes or in the actual implimentation. Yet in many of these cases, you cannot just copy and paste lots of code and expect things to work. This code has to be ported and merged just as the networking stack code was (though something like a typedef or a struct declaration might be something that can be copied as is, the code to acually handle what tou do with that structure will likely have to be written in place in the kernel though again, I suspect that this will be trivial to impliment).

      --

      LedgerSMB: Open source Accounting/ERP
    9. Re:Vista Will Probably Be BSD-Based by NetRAVEN5000 · · Score: 1
      Wait, are you trying to prove or disprove him? At first it sounds like you're trying to disprove him, but then you follow up by supporting him.

      It is well-known that MS has used code from open-source projects in the past. For example, they used the BSD TCP/IP stack to create the Windows TCP/IP stack. There are other examples, but I can't think of them offhand.

      And the features you mentioned have been in Linux for quite some time.

    10. Re:Vista Will Probably Be BSD-Based by LO0G · · Score: 1

      Never said that NT hasn't had stuff from BSD before - it's well known that some of the TCP utilities in XP still have BSD copyrights on them.

      But none of the items listed by the GP is evidence that the Vista kernel was rewritten based on BSD. All of the technologies cited have been in Windows for a very long time.

    11. Re:Vista Will Probably Be BSD-Based by NetRAVEN5000 · · Score: 1
      Again, who are you trying to prove right?

      "All of the technologies cited have been in Windows for a very long time."

      Right, but they were taken from other OSes that were already available. Sure, NT 3.1 had symlinks, but so did UNIX - which was made in the '70s and was used quite a bit in the '80s. So what if NT 3.1 had it - 3.1 came out in 1993. So what if NT 4 had SFU - obviously UNIX had that in the '70s so who cares if MS had it in 1996? So what if NT 3.1 had limited rights user accounts - UNIX had that, too.

      MS even had to copy their GUI - from their betrayed partner IBM, no less! Knowing them, they probably just copied the code they were using for OS/2.

      And don't use the excuse that Linux didn't have some of these features until later - Linux didn't even come out until the '90s.

    12. Re:Vista Will Probably Be BSD-Based by Devil · · Score: 1

      I actually blogged about both why MSFT ought to dump Windows' codebase for a BSD-based one and why Microsoft has lost control of their ship some time ago. I'd appreciate any thoughts.

  102. Only on BSD and Linux... you want readlink. by Ayanami+Rei · · Score: 2, Informative
    readlink (2)
    NAME
    readlink - read the contents of a symbolic link
    SYNOPSIS

    #include <unistd.h>

    ssize_t readlink(const char *restrict
    path , char *restrict buf ,
    size_t
    bufsize );

    DESCRIPTION

    The readlink() function shall place the contents of the symbolic link referred to by path in the buffer buf which has size bufsize. If the number of bytes in the symbolic link is less than bufsize, the contents of the remainder of buf are unspecified. If the buf argument is not large enough to contain the link content, the first bufsize bytes shall be placed in buf.

    If the value of bufsize is greater than {SSIZE_MAX}, the result is implementation-defined.

    RETURN VALUE

    Upon successful completion, readlink() shall return the count of bytes placed in the buffer. Otherwise, it shall return a value of -1, leave the buffer unchanged, and set errno to indicate the error.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  103. The important question though.. by daVinci1980 · · Score: 1

    Has nothing to do with symlinks at all. The important question is, will SMB2 finally use the underlying verification for correctness when being sent across authenticating protocals (ala TCP/IP).

    I hate the fact that I can FTP a file between windows boxes at approximately 10x the speed that I can "copy" them in explorer.. At the very least, the mid-level (API) copy functionality should do the determination itself as to which method *should* be faster, and do the appropriate thing.

    --
    I currently have no clever signature witicism to add here.
  104. I hope they do it the RIGHT way. by Caspian · · Score: 2, Insightful

    I hate how Mac OS X handles symlinks. Symlinks work perfectly, both within the shell and within the Finder, but the Finder doesn't create symlinks... it creates Aliases (think "Shortcuts").

    "Aliases" don't work in the shell. They're files. Trying to "cd" to one of them is like trying to "cd" to a .lnk file in Windows.

    I wish the Finder created symlinks (or, at least, that you can make it do so) instead of Aliases.

    And I hope that, if and when Windows starts to support symlinks, explorer.exe will create symlinks instead of Shortcuts.

    --
    With spending like this, exactly what are "conservatives" conserving?
  105. Re:Ah yes by NutscrapeSucks · · Score: 1

    IIRC, the whole OS/2 WP shell operated in an alternate universe from the filesystem, and "shadows" only existed in some binary database file somewhere.

    --
    Whenever I hear the word 'Innovation', I reach for my pistol.
  106. It's about time by Mithrilhall · · Score: 1

    Well it's about time. Leave it to Micro$oft to be a fews years late as usual. (IDIOTS)

  107. Flush it out by lsetia · · Score: 0

    ln -s /dev/null /boot/vista.bz2

    enough said

  108. An application by Digz · · Score: 1

    One application of this idea:

    Suppose you have a category of shortcuts that you want to be available on every user's desktop when the machine is set up (file shares, so forth and so on). On Windows, you can just copy the .lnk files from one machine and put them in the c:\documents and settings\all users\desktop folder on the new machine to make them available without having to recreate them.

    That being said, I MUCH prefer symlinks.

    --
    SYS 64738
  109. quotes by Anonymous Coward · · Score: 0

    I know fortune, and I still have to ask about the single quotes...

  110. GOD, FINALLY! by Agilo · · Score: 1

    They're only a few years behind, no biggy.

    Seriously, though, I've been wanting this for years.
    Shortcuts just don't cut it (get it? Sorry. :-().

    --
    - Agilo
  111. scared of the windows way by dindi · · Score: 1

    symlinks are cool, however mix it with the way windows programs are installed and there WILL BE CHAOS

    I can already see XYZ company selling symlink cleanup tools for all the programs that link to all over the windows SYSTEM dirs...

    On the other hand programs could ONLY place a symlink into a shared lib dir and keep the DLL in their installation dir... at the end it could be a decent thing too ....

    I wanted to criticise and just realized that it could be useful to clean some mess up at the end

  112. Re:baby with the bathwater by EnderWiggin99 · · Score: 0, Flamebait

    Where the hell did you go to school?

  113. What's next? by Anonymous Coward · · Score: 0

    New Vista file system == UFS?
    Vista as a Mach3 identity side-by-side 4.4BSD?
    Security tool that lets normal users obtain admin right: admindo?

    "Oh, magic crystal orb that shows me the path to go,
    where does that orange glow come from and what is that coax cable in your back for?"

  114. Bah! Stupid Microsoft! by Greyfox · · Score: 1

    Maybe in 20 years their toy operating system will catch up to where UNIX is today. Don't think UNIX will be standing still in that time, though! But at least by then I suppose Windows will be somewhat useful. I suppose I can't really hate them though. If they went out of business, pretty much the entire security industry would collapse overnight. Millions of people who have built their jobs around Microsoft's crappy security, instantly out of work! It'd be the dot-com bust all over again!

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  115. Vista escapes the Matrix by moojin · · Score: 2, Funny

    Later on, Vista wakes up. He sees his code-base pierced with dozens of acupuncture-like needles wired to a strange device insert new lines of source code.

    *nix Developer 1: He still needs a lot of work.

    Vista: What are you doing?

    *nix Developer 2: Your source code has atrophied, we're rebuilding them.

    Vista: Why do the symbolic links in my file system hurt?

    Vista blinks

    *nix Developer 2 : You've never used them before.

    Vista looks confused

    *nix Developer 2 : Rest, Vista, the answers are coming.

    Vista passes out again.

    --
    Why did I lurk so long before registering for a Slashdot account? I could have had a Slashdot ID of less than 100000.
  116. Oh, No. by Burz · · Score: 1
    I can see it now.
    C:\My Documents ---> C:\WINNT\profiles\user\My Documents ---> C:\Documents and Settings\User\My Documents ---> C:\Windows\My Borked System


  117. Re:FOUR, er FIVE symlink styles, all kinda *wrong* by HermanAB · · Score: 1

    Make that six: As another contributor pointed out there is also Crosslinks...

    --
    Oh well, what the hell...
  118. mod parent funny by Anonymous Coward · · Score: 0

    am i the only one who got this?

  119. Re:FOUR, er FIVE symlink styles, all kinda *wrong* by Ancient_Hacker · · Score: 1

    "But isn't "subst" the same thing as mapping a directory to a drive letter?" That's the problem, it looks like the same thing, but has wildly different effects. In the old DOS days, "subst" was done by hooking the BIOS disk I/O calls and blindly mapping the drive indices. About 20 lines of asm. Worked swell, except when certain programs went straight to the disk controller. Then you'd end up backing up or formatting the wrong disk. ----- Mappng a drive uses the barely documented file system redirector calls. Very different animal from "subst".

  120. Mac OS X already does it the RIGHT way. by diamondsw · · Score: 2, Informative
    A symlink is a hack (as many others have mentioned) that relies on pathnames to find a file. This is almost criminally STUPID, since if the file is moved or renamed, the link will break. If any of the intervening folders change, it will break. All sorts of fragility has resulted ever since where things cannot be moved or else links will break.

    Mac OS X (and all the way back to System 7 in 1990) did it right by creating aliases which use a two-factor plan to locate its target:
    1. Check the file-id. This is roughly the same as the inode, and will remain the same if the file is moved or renamed. If it's been moved or renamed, then update the path (see step 2).
    2. Check the full pathname. Similar to a symlink. If the original file is deleted, but a different file is located where it was last seen, update the file-id.


    Aliases also store sufficient information about the volume they were located on that the Finder can mount the volume automatically (if it's on the network) or inform the user of exactly why it didn't work. This also allows aliases to cross filesystems, which symlinks can but hard links cannot.

    This is why symlinks are such a stupid solution on UNIX, since that OS has no excuse - aliases could have been trivially implemented due to the dual-layer nature of the filesystem (inodes separate from hierarchy).

    (Now, I agree completely with how sucky it is that the shell does not support them, and that aspect has been sucky since day 1. However, that has nothing to do with alias technology and everything to do with shell implementation.)
    --
    I don't know what kind of crack I was on, but I suspect it was decaf.
    1. Re:Mac OS X already does it the RIGHT way. by fdragon · · Score: 1

      Unix has been doing that for years as well, and quite possibly where the MAC people got the idea.

      Unix symbolic links operate in one of two ways currently, SOFT and HARD.

      Created via the SOFT mode, with the command "ln -s" the link specifies either a full or relative path to the target.

      Created via the HARD mode, the inode use counter is incremented by one, and the entry is added to the directory listing.

      Also, NTFS since Windows NT 4.0 or so, has had the capability for doing symbolic links in the HARD form for some time, they are just now getting around to adding an interface to activate the fature. Symbolic links in the SOFT form have been around for a short time now in the form for "Short Cuts" on the windows platform.

      Reference to a security problem Windows NT 4.0 and Windows 2000 have with this feature : http://cert.uni-stuttgart.de/archive/bugtraq/2002/ 08/msg00240.html

      --
      The program isn't debugged until the last user is dead.
    2. Re:Mac OS X already does it the RIGHT way. by diamondsw · · Score: 1

      I'm sorry, but no. Soft links are purely path based. Hard links are limited to being on the same volume by their design. Aliases combine the flexibility of hard links with the cross-volume nature of soft links (that's why the volume information is separated from the file information in an alias). Unix certainly had the basic idea first, but no other platform has something as "intelligent" as an alias. The only place they fall down is in the shell (we're waiting, Apple!).

      Shortcuts are NOT the same as "soft links" or symlinks. If they were, then we could use them as a seamless part of a path. So if one application expects a directory "foo" and its files to be located at C:\ and one application expects the same file to be at C:\Program Files, a shortcut will fail. Symlinking it would work (and as I have discovered, Junction works quite well for this).

      --
      I don't know what kind of crack I was on, but I suspect it was decaf.
  121. SMB2 by fcjunk · · Score: 1

    I always used Luigi, the higher jumping was invaluable on most levels.

  122. Re:FOUR, er FIVE symlink styles, all kinda *wrong* by Ancient_Hacker · · Score: 1
    "As a practical matter, it doesn't seem to be a huge problem."

    Depends what you're doing, and how picky you are.

    If you're trying to index a whole file system. it's a huge pain to have two files with different names but pointing to the same data. Or a file that is actually a remote filesystem, which may or may not be available, may be 1000 times slower than the rest of the files.

    Or if you're trying to write yet another smart backup program and don't want to backup multiple copies of the 44GB database, just because different users have different shortcuts or mounts or aliases or substs to the same data.

    Or if you're trying to write a virus checker.... Regards, A_H

  123. OT: Windows mv by Anonymous Coward · · Score: 0

    There is a move command in the shell. But I am thinking at the completely wrong level?

  124. NTFS Has supported Hard Links ... by OneSmartFellow · · Score: 1
    for quite a while now, at least since the version that shipped with NT3.51. Although they weren't fully implemented (cross volume support) until quite recently at which time they yklept 'junction'.

    SymLinks are psuedo supported in Windows (although not by the file system) in the guise of shortcuts, although I'll admit a shortcut is a far cry from a symlink

    1. Re:NTFS Has supported Hard Links ... by OneSmartFellow · · Score: 1

      sorry 'yclept'

  125. NTFS already had symlinks? by emil · · Score: 1

    I haven't really tested it, but the unxutils package includes an ln binary.

    Isn't there a POSIX layer for NT that would require symlink ability? This is probably just unused capability that is already built into the OS.

    1. Re:NTFS already had symlinks? by Anonymous Coward · · Score: 2, Informative

      NTFS has had hard links since the first version in 1993. Reparse points were added to NTFS in Windows 2000. These work like symbolic links, but can only point at directories, not files.

    2. Re:NTFS already had symlinks? by Richard+Steiner · · Score: 3, Insightful

      FAT filesystems have had hard links since the beginning, but CHKDSK doesn't like 'em... :-)

      --
      Mainframe/UNIX Bit Twiddler and long time Windows/Linux Hobbyist.
      The Theorem Theorem: If If, Then Then.
    3. Re:NTFS already had symlinks? by KillerCow · · Score: 1

      Isn't there a POSIX layer for NT that would require symlink ability? This is probably just unused capability that is already built into the OS.

      It is. NTFS already supports links. Soft and hard. There is just no easy way to create them through the explorer interface. There was a command line utility that you could download to make them though. The fact that you can "mount" a drive as a folder is the only visible indication in the current UI.

      I couldn't find teh command line tool that I used to use, but a quick google search turned up this: NTFS Link

  126. But being an apologist for M$ symlinks is silly by Anonymous Coward · · Score: 0

    Would you be so understanding if a TV manufacturer suddenly claimed "innovation" because they finally decided to offer color TVs? In 2005?

    Because that's just about what Microsoft is doing with symbolic links.

    1. Re:But being an apologist for M$ symlinks is silly by man_of_mr_e · · Score: 1

      But that's just it, Microsoft *ISN'T* claiming this is an innovation. Microsoft's opponents are claiming they're claiming it's innovation.

      See the difference?

    2. Re:But being an apologist for M$ symlinks is silly by Anonymous Coward · · Score: 0

      > But that's just it, Microsoft *ISN'T* claiming this is an innovation. Microsoft's opponents are claiming they're claiming it's innovation.

      This is entirely true. Listen to this guy. He knows what he's talking about, unlike the author of the post before it.

      Why does every thread having anything to do with Microsoft suddenly become a Microsoft vs Linux thread? Isn't the whole point of open source to share ideas and make software in general better? Then why is it that everyone bashes Microsoft whenever they implement others' ideas into their software? Because they call themselves innovative? So what? It's a marketing ploy, you retards. It's one of the reasons that they have more market share than all of their competitors combined.

  127. SAH-WHEAT by Anonymous Coward · · Score: 0

    Thanks MS! That's actually my biggest gripe about windows other than the price. Bring the price down to $50 a seat for EVERYTHING and I'll be able to forget about linux.

  128. Reparse Points already give you symlinks by X · · Score: 1

    It looks like the article is describing something somewhat different from symlinks. That said, NTFS since Windows 2000 and on has already had the capability of doing symlinks through Reparse Points. Indeed, this is how mount points were done. Perhaps not the most efficient way to do things, but it works just great, and it's far more flexible than symlinks.

    --
    sigs are a waste of space
  129. Why do Linux more like Windows? by miffo.swe · · Score: 1

    When Microsoft is doing their best to make Windows more like *nix!

    --
    HTTP/1.1 400
  130. Good grief! by cortana · · Score: 2, Funny

    Are Plan 9 users the new Ubuntu users (who were previously the new Gentoo users)? ;)

  131. Some people use FAT32... by Richard+Steiner · · Score: 1

    ...because that filesystem is actually DOCUMENTED, meaning other operating systems can actually read and write to it without having to blindly trust some blackbox implementation of a filesystem driver.

    --
    Mainframe/UNIX Bit Twiddler and long time Windows/Linux Hobbyist.
    The Theorem Theorem: If If, Then Then.
  132. symlinks in Unix don't work over sharing either... by YesIAmAScript · · Score: 1

    If they are links to absolute paths. Because file systems aren't always shared at the same point in the tree as they are originally.

    Honestly, MS' shortcuts are exactly like symlinks. They're just a file with a special bit set that you open and read to get a redirect. The only difference is the servers/clients don't interpret them. The server passes them on unmolested and the client (on Linux/Mac) doesn't bother to interpret them either.

    Also, it is stealing. Were you out there fighting when people talked of stealing cable? How about stealing a kiss? How about stealing away to a secluded place? Face it, English overloads words constantly, this is just another case.

    --
    http://lkml.org/lkml/2005/8/20/95
  133. You've got this all wrong by Anonymous Coward · · Score: 0

    If you actually read the article you linked to, you'll see the problem is with the stupid way that Unix implements these things. Since symlinks were hacked onto Unix as an afterthought, they don't preserve Unix semantics. That is, the command "cd /home/rob/.." doesn't take you to "/home" if rob is actually a symlink because it goes to whatever inode the ".." link points to on whatever filesystem rob is mounted from. On Windows, though, "cd \home\rob\.." will always take you to "\home" because, just like Plan9, it doesn't have the same braindead implementation as Unix.

    dom

  134. Ah, the "backwards comptibility" card... by Richard+Steiner · · Score: 2, Insightful

    Sorry, but that dog don't hunt this time. It's trivial to write a filesystem driver to create a virtual drive letter for legacy applications that would need such while at the same time making useful things available like true loing filenames, symbolic links, etc.

    That's the same excuse that they used for using FAT32 in Win9x, but OS/2 proved them wrong even before the first Win9x release when OS/2 2.0 allowed DOS and Windows programs to install and run on an HPFS partition. Even Windows 3.1 itself could be installed under OS/2 on HPFS!

    Besides, I think

    --
    Mainframe/UNIX Bit Twiddler and long time Windows/Linux Hobbyist.
    The Theorem Theorem: If If, Then Then.
    1. Re:Ah, the "backwards comptibility" card... by ckaminski · · Score: 1

      FAT32 was a non-destructive upgrade. HPFS/NTFS was not.

    2. Re:Ah, the "backwards comptibility" card... by man_of_mr_e · · Score: 1

      Actually, while it's true that you could run DOS programs on HPFS, it wasn't without problems. two long file names with the same first 8 characters and possibly first 3 after the last period would appear identical to DOS programs, with no way to select one or the other.

      This is a pretty nasty problem, and one Micorosft fixed with the often heckled ~number format.

    3. Re:Ah, the "backwards comptibility" card... by Richard+Steiner · · Score: 1

      I'm not sure I've seen that one. As far as I know, filenames which didn't fall within the 8.3 FAT16 filename convention were simply rendered invisible to DOS programs running in a standard VDM, and of course DOS and older Windows programs wouldn't choose to use anything but 8.3 filenames by definition so it would be a complete nonissue in most cases.

      I also know the fact that DOS programs couldn't see longer filenames on HPFS partitions was an issue for folks who wanted to use DOS-based filemanagers and such on non-FAT partitions, but at least one IFS exists to solve that "problem" as well, meaning the issue with with OS/2's initial IFS implementation, not a general problem that wasn't solvable.

      --
      Mainframe/UNIX Bit Twiddler and long time Windows/Linux Hobbyist.
      The Theorem Theorem: If If, Then Then.
  135. Re:baby with the bathwater by mce · · Score: 1
    Why not just take away symlinks to directories? They're really most useful for files, anyway.

    Ahem...

    prompt> pwd
    /some/where/packages/xfig
    prompt> ls -l
    total 12
    drwxr-xr-x 9 me software 4096 Mar 19 2003 3.2.3d/
    drwxr-xr-x 9 me software 4096 Mar 19 2003 3.2.4/
    lrwxr-xr-x 1 me software ..11 May 15 2004 bin -> current/bin/
    lrwxr-xr-x 1 me software ...5 May 15 2004 current ->3.2.4/
    lrwxr-xr-x 1 me software ..11 May 15 2004 man -> current/man/

    We have hundreds of those over here, and we're not alone in the universe...

  136. Bad Feeling by Gja · · Score: 1

    I have a bad feeling that somehow this will be a cause of MAJOR security hole

    Virus may simply cause symlinks to various important files, and let the administrators fsck their own files

    I don't think windows is ready for the concept of sym links yet

    I may be wrong, but we'll just have to see

  137. Shortcut by mslinux · · Score: 1

    Symlink - Noun. More commonly called a 'Shortcut' by Windows users.

    1. Re:Shortcut by wraith0x29a · · Score: 1

      Not quite but almost, nearly, kinda..

      The Free On-line Dictionary of Computing (27 SEP 03)

      shortcut
      <file system>

      Microsoft Corporation's term for a symbolic link, stored as a file with extension ".lnk". Shortcuts first appeared in 1996 in the Windows 95 operating system. Windows shortcuts can link to any file or directory ("folder"), including those on remote computers, using UNC paths. Each shortcut can also have its own icon. A shortcut that links to an executable file can pass arguments and specify the directory in which the command should run.
      Unlike a Unix symbolic link, a shortcut does not always behave exactly like the target file or directory.

      (my bold)

      --
      ~ Better a freak than a sheep. ~
  138. Re:FOUR, er FIVE symlink styles, all kinda *wrong* by Anonymous Coward · · Score: 0

    Apart from having a similar effect, the NT subst command has nothing in common with the DOS subst command. NT subst simply adds a new symbolic link to the internal device namespace.

  139. A Lot of Rope by arjay-tea · · Score: 1

    In the wrong hands, symlinks are a handy means of rendering an otherwise clean system unmaintainable. I've seen this plenty of times on *nix boxes which were sloppily maintained.

    I can't wait to see what happens on Windows. :-]

    1. Re:A Lot of Rope by avdp · · Score: 1

      In that regard it's no different than Shortcuts. Shortcuts that point to nothing are very common in Windows-world as well. It's irritating, no question about it, but I'd still rather not go without that feature.

  140. My opinion by guisar · · Score: 1

    Who cares... I'm sure this will be very useful to the gamers, cube weenies and home office crowd.

  141. Re:Ah yes by TopSpin · · Score: 1

    When shortcuts were invented for Win95 the Win32 API should have been built to treat a shortcut as the object it pointed to. That way they would have had real working links up front. Now they are going to be stuck with two types of link which work in different ways.

    Windows is finally implementing true file system path aliases. This is not ambiguous with Shortcuts.

    'Shortcuts' are more than just an encoded path. 'Hotkeys' can be associated, 'starting directory' can be designated, arbitrary icons assigned, etc. The *nix analogy is found in any contemporary X Windows GUI shell (Gnome, KDE, etc.) with their various dot file structures defining menus and/or launch parameters for GUI applications.

    Windows had the GUI application metadata 'link' first and got symlinks second. *nix got symlinks first and then blundered into Shortcuts (doomed to forever lack a uniform manifestation.) I think this just highlights the different priorities of the platforms.

    --
    Lurking at the bottom of the gravity well, getting old
  142. Re:Ah yes by Anonymous Coward · · Score: 0

    I disagree. Shortcuts are more like an alias than like a symlink, which gives you the ability to do things that hardlinks and symlinks don't do. For example, a shortcut can run the target as a different user, specify the working directory for the target, run a command with a command line, specify console colors for console applications, specify an icon to dispay when showing the link, specify how to show any window that the target displays (minimized, maximized, etc), and other things.

    Given that, they have their place and are useful even when you have hardlinks and symlinks.

  143. Re: Forward slashes by Anonymous Coward · · Score: 0

    Believe it or not, they already work at the Windows API level. Yes, CreateFile, etc. take forward slashes when opening or creating a file.

    Even meaner, there is a way to call CreateFile that accepts backslashes as ordinary characters (FILE_FLAGS_POSIX_SEMANTICS or something like that). Have fun with your admin that way.

  144. Re:FOUR, er FIVE symlink styles, all kinda *wrong* by AVryhof · · Score: 1

    then there is the even older DOS ASSIGN command...and Windows 9x "Long Filenames" ... and APPEND, and all sorts of other symlink wannabes.

  145. Already in XP by Anonymous Coward · · Score: 0

    Windows NT has had the form of links needed for Posix compliance forever. XP has both hard and soft. They're not exactly easy to create, but the support is there.

  146. Get rid of drive letters by WestCoastBogeyMan · · Score: 1

    What Windoze needs is to get rid of those pesky drive letters. Implement support for legacy apps, but get rid of C:, D:... there's another *nix thing that's been around for ages. Now I know Windoze does have junction points BUT drive letters are still there.

    1. Re:Get rid of drive letters by Anonymous Coward · · Score: 0

      Actually, Windows NT internally does refer to devices in the same manner that UNIX does. Drive letters only exist externally due to legacy applications.

    2. Re:Get rid of drive letters by Tidal+Flame · · Score: 1

      Most people I know who could be considered "average users" find Windows' drive lettering a whole lot easier to understand than *nix filesystems.

  147. They already have them! (NTFS Junction) by Anonymous Coward · · Score: 0

    NTFS has had junctions for a while. They act very similar to SMB links, and you can get a utility from sysinternals to manipulate them.

    C:\>dir *.
    Volume in drive C has no label.

    Directory of C:\

    07/06/2005  11:08 AM    <JUNCTION>     desktop
    03/03/2005  10:52 AM    <DIR>          Documents and Settings
    10/26/2005  02:33 PM    <DIR>          Program Files
    10/28/2005  10:27 AM    <DIR>          WINDOWS

  148. Duplication... by millennial · · Score: 1

    ...is a complement of the highest form.
    /deterioration!

    --
    I am scientifically inaccurate.
  149. symlinks by Anonymous Coward · · Score: 0

    I'm pretty sure, I can predict first seroius overflow bug. It's a symlink to parent directory.... :)

  150. Microsoft, meet Henry Spencer. by ledow · · Score: 1

    Those who do not understand Unix are condemned to reinvent it, poorly.
    -- Henry Spencer Usenet signature, November 1987

  151. GNU Utilities for Win32 by jack_csk · · Score: 1

    Does that mean I can finally do something like
    ln -s filename1 filename2
    via GNU Utilities for Win32 under Windows Vista?
    coz last time I used ln in WinXP, it says:
    ln: symbolic links are not supported on this system

  152. in the words of the great YugoBernie by Anonymous Coward · · Score: 0

    fing dhu.

  153. SCO won't see it as funny by Anonymous Coward · · Score: 0

    > saying that MS developed it,

    SCOG will be saying that _they_ developed it and will sue MicroSoft for all Windows revenue they ever collected or $50 billion whichever is higher, _and_ will require all Windows Vista users to buy SCOG licences at $795.00 per user.

  154. But how will they run legacy Windows applications? by Anonymous Coward · · Score: 0

    Wait.. I know it..

    Wine

    Of course! It's all a conspiracy of the wine-developers to make a huge, ugly and powerful MicroSoftDaemon!

    This is pure genius! We should all buy stock in wine now!!

  155. I want my 7 seconds back by billcopc · · Score: 1

    Why is it that we hear another story about Vista every day now, and yet the software is still in a very speculative state ? Do I really care what bullcrap the insider-of-the-week imagined when he repeatedly smacked his forehead against the desk this morning ?

    Vista will be whatever Vista is when it is released. There have been more features dropped than added and all this media spin is sounding like the Weekly World News and their alien transgendered babies.

    "We're going to do this, we'll revolutionize that".. why don't they just shut the hell up and build it already. It's just a freaking GUI, not rocket science here.

    --
    -Billco, Fnarg.com
  156. Re:FOUR, er FIVE symlink styles, all kinda *wrong* by Anonymous Coward · · Score: 1, Informative

    As far as an application is concerned, there are only 3 different kinds of symlinks:

    1. Object manager symlinks (1 and 5 are both drive letter mappings)
    2. Filesystem symlinks (3 and 4 are both NTFS reparse points)
    3. Application symlinks (shortcuts are imlemented by OLE)

    If you're writing an end-user application, you probably only care about application symlinks if you care at all (because standard dialogs follow them for you). The advantage of shortcuts is that they can track their target if moved to another directory, or even to another computer!

    If you are writing a system utility (such as backup or indexing) you have to pay attention to filesystem symlinks (like in Unix) because you can choose to follow them or not. But otherwise your burden is no different than without symlinks because the existence of hard links means that you already have to keep track of which filesystem/file number combinations you have already processed.

    Now if you think that's bad, imagine how much worse it is on Unix. The proliferation of filesystems has made it so that you don't even know what's really a file and what isn't. Only a truly naive program would try to backup and restore /dev/kmem or /dev/sda0, what what about /proc? There's no function you can call that will tell you whether something is a real file or a virtual one, so your program is SOL.

    dom

  157. Here you go by okmnji · · Score: 1
  158. That's what Crossover is for... by Anonymous Coward · · Score: 1, Interesting

    Why do you think CodeWeavers pushed so hard to change the Wine license? It certainly wasn't to help Linux. They knew that the change would prevent Windows Games software from using Wine to run on Linux (hence the Transgaming WineX fork).

    Why do you think CodeWeavers has been concentrating mostly on Microsoft applications? And how do you think Crossover got the information necessary to make Office run properly, when no one else had succeeded? And why do you think Microsoft has never complained about or threatened Crossover?

    And let's not forget about Microsoft's partnership with VMWare.

    All the pieces are in place for Microsoft to put a Windows application layer on top of BSD, and OSS developers helped build those pieces.

    But it won't be perfect, of course, which is why Microsoft has been warning us about Vista incompatibilities.

  159. I hate to burst everybody's bubble by Anonymous Coward · · Score: 0

    NTFS has had support for links for a very long time. MS has provided command line tools to create links since early NT days. "DIR" even identifies them specifically as a "link" instead of another unique folder. The "news" here is that the explorer shell and SMB will now support links. If this wasn't Windows, it would be a "big deal, next please" type of article. However, it is quite fashionable to pounce on Microsoft, so we must endure countless posts poking fun at MS. If MS didn't add this support, we would endure countless other posts complaining that it doesn't support this. Damned if you do; Damned if you don't.

  160. Depends. by Richard+Steiner · · Score: 1

    Partition Magic 1.0 through 6.0 or so was able to do FAT16->HPFS conversions in place without any need to move the data. Rather slick.

    People forget that it started life as an OS/2 utility.

    --
    Mainframe/UNIX Bit Twiddler and long time Windows/Linux Hobbyist.
    The Theorem Theorem: If If, Then Then.
  161. Ah, a symlink.... by minion · · Score: 1

    How quaint.

    --

    -- If we don't stand up for our rights, now, there will be no right to stand up for them later.
  162. Re:only way to improve on slinks is to get rid of by master_p · · Score: 1

    Hierarchical data organization can exist inside a database by using one or more links in the same table or in a different table.

  163. Slow down by mark-t · · Score: 1

    Baby steps, man... baby steps.

  164. Winbolic Link already does this by Anonymous Coward · · Score: 0
  165. Re:only way to improve on slinks is to get rid of by Anonymous Coward · · Score: 0

    The term you're looking for is "DBMS", since the filesystem is *already* a database.

    But yeah, relational filesystems would rock it hard. However, it doesn't seem like the IT industry can even build a proper relational DBMS *application*, I would shudder to think what crap they would create if they tried to build it at the OS level.

  166. allready got forward slashes. by krischik · · Score: 1

    ever tried:

    dir "c:/windows"

    on a commandline. supprise, suprise.

    The "'\' vs. '/' - well have both!" idea comes from OS/2 and NT has inherited it.