home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20809 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.6 KB  |  35 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!torvalds
  3. From: torvalds@klaava.Helsinki.FI (Linus Torvalds)
  4. Subject: Re: PATCH: (0.98.6) allow root to link/unlink directories
  5. Message-ID: <1992Dec17.123007.24132@klaava.Helsinki.FI>
  6. Organization: University of Helsinki
  7. References: <1992Dec14.224916.21859@klaava.Helsinki.FI> <irc.724492966@ultima> <cfA0XjK00WDJ4O01Fk@andrew.cmu.edu>
  8. Date: Thu, 17 Dec 1992 12:30:07 GMT
  9. Lines: 24
  10.  
  11. In article <cfA0XjK00WDJ4O01Fk@andrew.cmu.edu> Frank T Lofaro <fl0p+@andrew.cmu.edu> writes:
  12. >
  13. >    But if you delete where a symlink points to, you have a worthless,
  14. >dangling symlink (*).  A hard link would allow you to delete the source
  15. >from its original location if no longer needed there, but leave the copy
  16. >in your account untouched. 
  17.  
  18. Yes, but with a hard link, the parent directories get *very* easily
  19. messed up, and you can be left totally stranded if you don't understand
  20. the filesystem very well.  Even a guru can get confused if the link
  21. counts etc seem off due to bad entries for '.' or '..'.  It's not
  22. something you want to do. 
  23.  
  24. >* Does Linux still have the dangling symlink bug. Like, if you do ln -s
  25. >some_file_name_that_does_not_exist foo, does a cat foo say "Too many
  26. >levels of symbolic links", instead of "No such file or directory" or
  27. >some other appropriate message? Just thought I'd mention it, in case the
  28. >bug is still lurking out there.
  29.  
  30. No the bug has been corrected since 0.98 or so: it was just due to an
  31. incorrect error return, not and fundamental kernel wrong-doings.  I
  32. cleaned up the error-handling in 0.97pl6 or something. 
  33.  
  34.         Linus
  35.