home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sun / admin / 8042 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  3.4 KB

  1. Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!uwvax!astroatc!vidiot!ftms!brown
  2. From: brown@ftms.UUCP (Vidiot)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Re: The case of the symbolic link traversal in 4.1.3
  5. Message-ID: <403@ftms.UUCP>
  6. Date: 6 Nov 92 17:57:46 GMT
  7. References: <398@ftms.UUCP> <Bx7G25.4C0@dcs.glasgow.ac.uk>
  8. Reply-To: brown@ftms.UUCP (Vidiot)
  9. Organization: Vidiot's Other Hangout
  10. Lines: 74
  11.  
  12. In article <Bx7G25.4C0@dcs.glasgow.ac.uk> sinclair@dcs.glasgow.ac.uk (Duncan Sinclair) writes:
  13. <In article <398@ftms.UUCP>, brown@ftms.UUCP (Vidiot) writes:
  14. <> 
  15. <> Over the weekend I upgraded a bunch of our SPARCstations to 4.1.3,
  16. <> from 4.1.1 and 4.1.2.
  17. <
  18. <We've got all three, so I ran some tests...
  19. <
  20. <> In the past, if one did a 'ls -lga dir_name' and the dir_name was a symbolic
  21. <> link, one could see the contents of the linked directory by appending / to
  22. <> the end and doing ls again (ls -lga dir_name/).  Used to work great.  Now
  23. <> 4.1.3 comes along and still only reports the link.
  24. <
  25. <I noticed this too, but thought it was because I had just started using
  26. <the GNU version of ls, and that it GNU/POSIX brain-damage...
  27. <
  28. <Then when I saw this I ran a few tests, seems that it's not ls's fault,
  29. <but the 4.1.3 kernel that does this.  It has changed the path semantics,
  30. <so that "foo/" == "foo", rather than "foo/" == "foo/."
  31. <
  32. <This is against normal Berkeley semantics that says that a "" as the
  33. <file name on any path is the same as ".".
  34. <
  35. <Apart from the unfortunate effect it has to "ls -l slink/", I think this
  36. <is a positive change.
  37. <
  38. <One good reason why I like this new behaviour is that it allows
  39. <me to type "rmdir foo/" (with help from my shell that automatically
  40. <puts a slash on the end of directory names during completion),
  41. <without it complaining "rmdir: foo/: Invalid argument"  (you cannot
  42. <remove the directory "." in the directory "foo").
  43.  
  44. With zsh, it too puts the / at the end.  But, the 4.1.2 rm didn't give me
  45. that error, it just said that it couldn't remove dir/.  It did remove all the
  46. stuff in the directory though.
  47.  
  48. <I had an argument on comp.unix.programmer with some others as to how
  49. <this should behave, when I was looking for this new behaviour.  So I
  50. <now understand this area very well.
  51. <
  52. <> Why the Hell did Sun change ls so that it doesn't work the same
  53. <> as it used to?  It came in very handy to be able to traverse the
  54. <> link by adding a / to the path.
  55. <
  56. <Yup, I will miss this, I'd like this intelligence built into "ls",
  57. <but adding a "/." isn't so hard.
  58.  
  59. I have been informed of the /. addition and will be using that.  I just glanced
  60. through my 4.1.3 install manual and saw nothing there that mentions the /
  61. being changed.  At least they could have put it in writing.
  62.  
  63. <> It doesn't matter if I use zsh or csh, it don't work.
  64. <
  65. <Or even which version of ls - 4.1.1,4.1.2,4.1.3, or even GNU.
  66. <
  67. <GNU's rmdir has this (new) behaviour hacked into it, perhaps the
  68. <GNU ls could have the old behaviour hacked in also.
  69. <> How do I get the old method back???????
  70. <
  71. <Get used to it....  This is probably the S5R4 way.
  72.  
  73. :-(
  74.  
  75. <> (Yes, I'm pissed :-)
  76. <
  77. <In the UK this means you are blind drunk.  I assume you don't mean this... 
  78.  
  79. Ya, I thought of that.  But you are right, I didn't mean it that way :-)
  80. -- 
  81. harvard\
  82.   ucbvax!uwvax!astroatc!ftms!brown  or  uu2.psi.com!ftms!brown
  83. rutgers/
  84. INTERNET: brown@wi.extrel.com  or  ftms!brown%astroatc.UUCP@cs.wisc.edu
  85.