home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4573 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.5 KB  |  50 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!mcsun!sun4nl!eur.nl!pk
  3. From: pk@cs.few.eur.nl (Paul Kranenburg)
  4. Subject: Re: filesystem dissapears
  5. Message-ID: <1992Aug22.091612.27046@cs.few.eur.nl>
  6. Sender: news@cs.few.eur.nl
  7. Reply-To: pk@cs.eur.nl
  8. Organization: Erasmus University Rotterdam
  9. References: <GEORGE.92Aug21065529@gloria.csi.compuserve.com> <1992Aug21.172156.18879@fcom.cc.utah.edu>
  10. Distribution: comp
  11. Date: Sat, 22 Aug 1992 09:16:12 GMT
  12. Lines: 36
  13.  
  14. In <1992Aug21.172156.18879@fcom.cc.utah.edu> terry@cs.weber.edu (A Wizard of Earth C) writes:
  15.  
  16. >In article <GEORGE.92Aug21065529@gloria.csi.compuserve.com> gjones@csi.CompuServe.com writes:
  17. >[ ... File system disappears ... ]
  18.  
  19. >It's in the FAQ.  Just type ^C and it'll come back.  Switch to csh (or
  20. >anything other than sh) for a permanent fix.
  21.  
  22. Avoid longjump'ing out of the routine `getpwd()' in src/bin/sh/cd.c (in case
  23. an error occurrs).  The following patch works for me.
  24.  
  25. *** /tmp/da02995        Sat Aug 22 11:15:35 1992
  26. --- cd.c        Sat Aug 22 10:54:25 1992
  27. ***************
  28. *** 347,353 ****
  29.                         close(pip[1]);
  30.                 }
  31.                 execl("/bin/pwd", "pwd", (char *)0);
  32. !               error("Cannot exec /bin/pwd");
  33.         }
  34.         close(pip[1]);
  35.         pip[1] = -1;
  36. --- 347,355 ----
  37.                         close(pip[1]);
  38.                 }
  39.                 execl("/bin/pwd", "pwd", (char *)0);
  40. !               out2str("Cannot exec /bin/pwd\n");
  41. !               flushall();
  42. !               _exit(1);
  43.         }
  44.         close(pip[1]);
  45.         pip[1] = -1;
  46.  
  47. --------------------
  48.  
  49. -pk
  50.