home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 9043 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  2.2 KB

  1. Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!alberta!cpsc.ucalgary.ca!xenlink!newt.cuc.ab.ca!deraadt
  2. From: deraadt@newt.cuc.ab.ca (Theo de Raadt)
  3. Newsgroups: comp.unix.bsd
  4. Subject: 386BSD: fstat bug?
  5. Message-ID: <DERAADT.92Nov18061416@newt.newt.cuc.ab.ca>
  6. Date: 18 Nov 92 13:14:16 GMT
  7. Sender: news@newt.cuc.ab.ca
  8. Organization: little lizard city
  9. Lines: 41
  10. Nntp-Posting-Host: newt
  11.  
  12. I think fstat has a bug.
  13.  
  14. [gecko yp 4 ]# ps agux
  15. ps agux | grep bind
  16. root       710  0.0  0.0   172    0 p1  S+    6:58AM    0:00.11 grep bind
  17. root       689  0.0  0.0   200    0 p0  S+    6:55AM    0:00.17 ./ypbind
  18. [gecko yp 5 ]# fstat -np 689
  19. USER     CMD          PID   FD  DEV    INUM       MODE SZ|DV
  20. root     ypbind       689   wd  5,1   81729      40700    512
  21. root     ypbind       689    0  0,0    3113      20620   5,0
  22. root     ypbind       689    1  0,0    3113      20620   5,0
  23. root     ypbind       689    2  0,0    3113      20620   5,0
  24. root     ypbind       689    3* internet dgram udp fe30b414
  25. root     ypbind       689    4* internet stream tcp fe322414
  26. root     ypbind       689    5* internet dgram udp fe30b394
  27. [gecko yp 6 ]# l /var/yp/binding/cuc.ab.ca.2
  28. -rw-r--r--    1 root           16 Nov 18 06:55 /var/yp/binding/cuc.ab.ca.2
  29. [gecko yp 7 ]# ./testlock /var/yp/binding/cuc.ab.ca.2
  30. -1 35
  31. [gecko yp 8 ]# ./testlock /etc/passwd
  32. 0 0
  33.  
  34. I know for a FACT that this process has file descriptor 7 open. (fd 7
  35. is being used to keep a shared-lock on /var/yp/binding/domainname.2 so
  36. that user level processes can access YP fast. It's a Sun hack.)
  37.  
  38. See how fd 6 is not open? I think fstat has a bug. Someone else want to
  39. deal with this one? I'll go roll in the snow (yes, there's snow outside)
  40. if there's no bug!
  41.  
  42. Those of you who are excited by the word "ypbind", just hold onta yer
  43. herses fer a little mer time, eh feller? Sooon...
  44.  
  45. Those who would flame me because "YP is such a terrible system", need
  46. not bother sending flames. (I'm writing it from scratch, I know how bad
  47. it is.) For those who care, I'm trying to make YP perform better than it
  48. does on any other machine (except perhaps Solaris.)
  49.  <tdr.
  50. --
  51.  
  52. This space not left unintentionally unblank.        deraadt@newt.cuc.ab.ca
  53.