home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- Path: sparky!uunet!mcsun!sun4nl!eur.nl!pk
- From: pk@cs.few.eur.nl (Paul Kranenburg)
- Subject: Re: filesystem dissapears
- Message-ID: <1992Aug22.091612.27046@cs.few.eur.nl>
- Sender: news@cs.few.eur.nl
- Reply-To: pk@cs.eur.nl
- Organization: Erasmus University Rotterdam
- References: <GEORGE.92Aug21065529@gloria.csi.compuserve.com> <1992Aug21.172156.18879@fcom.cc.utah.edu>
- Distribution: comp
- Date: Sat, 22 Aug 1992 09:16:12 GMT
- Lines: 36
-
- In <1992Aug21.172156.18879@fcom.cc.utah.edu> terry@cs.weber.edu (A Wizard of Earth C) writes:
-
- >In article <GEORGE.92Aug21065529@gloria.csi.compuserve.com> gjones@csi.CompuServe.com writes:
- >[ ... File system disappears ... ]
-
- >It's in the FAQ. Just type ^C and it'll come back. Switch to csh (or
- >anything other than sh) for a permanent fix.
-
- Avoid longjump'ing out of the routine `getpwd()' in src/bin/sh/cd.c (in case
- an error occurrs). The following patch works for me.
-
- *** /tmp/da02995 Sat Aug 22 11:15:35 1992
- --- cd.c Sat Aug 22 10:54:25 1992
- ***************
- *** 347,353 ****
- close(pip[1]);
- }
- execl("/bin/pwd", "pwd", (char *)0);
- ! error("Cannot exec /bin/pwd");
- }
- close(pip[1]);
- pip[1] = -1;
- --- 347,355 ----
- close(pip[1]);
- }
- execl("/bin/pwd", "pwd", (char *)0);
- ! out2str("Cannot exec /bin/pwd\n");
- ! flushall();
- ! _exit(1);
- }
- close(pip[1]);
- pip[1] = -1;
-
- --------------------
-
- -pk
-