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

  1. Path: sparky!uunet!pipex!warwick!uknet!glasgow!sinclair
  2. From: sinclair@dcs.glasgow.ac.uk (Duncan Sinclair)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Re: The case of the symbolic link traversal in 4.1.3
  5. Message-ID: <Bx8zGo.GG0@dcs.glasgow.ac.uk>
  6. Date: 5 Nov 92 14:41:11 GMT
  7. References: <398@ftms.UUCP> <Bx7G25.4C0@dcs.glasgow.ac.uk> <1992Nov5.000654.10013@cirrus.com>
  8. Organization: Glasgow University Computing Science Dept.
  9. Lines: 34
  10.  
  11. dhesi@cirrus.com (Rahul Dhesi) writes:
  12.  
  13. >In <Bx7G25.4C0@dcs.glasgow.ac.uk> sinclair@dcs.glasgow.ac.uk (Duncan
  14. >Sinclair) writes:
  15.  
  16. >>Then when I saw this I ran a few tests, seems that it's not ls's fault,
  17. >>but the 4.1.3 kernel that does this.  It has changed the path semantics,
  18. >>so that "foo/" == "foo", rather than "foo/" == "foo/."
  19.  
  20. >But I don't see how "x/" can ever correctly refer to anything except a
  21. >directory.  A kernel that simply ignores the trailing slash is broken,
  22. >in my opinion.  At the very least, there should be a check to make sure
  23. >that x/ is a directory.
  24.  
  25. Agreed, this is completely bogus.  I hadn't even thought of this
  26. as a possibility before.
  27.  
  28. I hope no shell will pattern match "*/" and include files as
  29. well as directories, I know zsh does it right.  What is needed
  30. is for the shell to do the check that the kernel doesn't.
  31.  
  32. >System V has been thus broken for some years.  It has lately become
  33. >fashionable to incorporate System V's bugs into other OSs.  POSIX
  34. >mandates this behavior too.
  35.  
  36. This stinks.
  37.  
  38.  
  39. -- D*S
  40.  
  41.  
  42. -- 
  43. Duncan Sinclair  |  sinclair@dcs.gla.ac.uk  |  sinclair@uk.ac.gla.dcs
  44.            ---  Rave Culture: Don't techno for an answer.  ---
  45.