home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 16229 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  2.4 KB

  1. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!torvalds
  2. From: torvalds@klaava.Helsinki.FI (Linus Torvalds)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Warning: using old stat() call. Recompile binary.
  5. Message-ID: <1992Nov10.100552.10258@klaava.Helsinki.FI>
  6. Date: 10 Nov 92 10:05:52 GMT
  7. References: <martin.721363005@menaik>
  8. Organization: University of Helsinki
  9. Lines: 49
  10.  
  11. In article <martin.721363005@menaik> martin@cs.UAlberta.CA (Tim Martin; FSO; Soil Sciences) writes:
  12. >My attempts to compile the latest Linux have not been very 
  13. >successful.  With patch level 4 I get the following error
  14. >several times, for each disk access command I enter:
  15. >
  16. >  Warning: using old stat() call.  Recompile binary.
  17. >
  18. >This warning line is found in the fs/stat.c code, in a
  19. >function called "old_stat_call()".
  20.  
  21. Yes - I'm going to remove the old stat() interface in 0.99 or so, so I
  22. wanted to warn people this way.  If you get the above messages all the
  23. time, the culprit is probably your shell: just get a new bash binary
  24. from a new rootdisk or similar.. 
  25.  
  26. If you want a slightly more informative message, you can change the
  27. kernel sources warning in fs/stat.c to
  28.  
  29.     printk("Warning: %s uses old stat() call. Recompile.\n",
  30.         current->comm);
  31.  
  32. That way the kernel will tell you *which* binary is old...
  33.  
  34. >Other errors still not solved, not found with 0.98 but
  35. >introduced with 0.98p3 and 0.98p4:
  36. >
  37. >1. "* substitution" no longer works.  This is not corrected
  38. >   by "unset noglob".
  39.  
  40. Same problem: your shell is old, and doesn't use the 'readdir()' system
  41. call, but tries to read the directory directly.  That no longer works. 
  42.  
  43. >2. The following error notice occurs on all logins (root or
  44. >   otherwise) and prevents the login from putting me in the
  45. >   home directory.  (I can cd to the home directory after,
  46. >   no problem.)
  47. >    shell-init: getwd: cannot access parent directories.
  48. >   The same error occurs occasionally during other disk
  49. >   accesses, sometimes without the "shell-init" prefix.
  50. >   This is not corrected by "chmod 755 /".
  51.  
  52. This *might* be due to your mount-points not being 'dr-xr-xr-x'.  That's
  53. how linux seems to want them (I haven't actually checked this out very
  54. much: I'm not sure if this is a feature or a bug..).  Check them out
  55. before mounting them (the permissions get hidden by the mount, so you
  56. can't see the problem afterwards..).  Also, you should naturally make
  57. sure that all the other paths up to your home directory are ok.. 
  58.  
  59.         Linus
  60.