From: davidsen@ariel.crd.GE.COM (william E Davidsen) Subject: Re: HELP! File system problem Date: 19 Aug 1992 15:23:39 GMT
In article <Aug.19.03.06.08.1992.18829@athos.rutgers.edu>, hedrick@athos.rutgers.edu (Charles Hedrick) writes:
| Once you're running that kernel, make yourself a utility "unlink":
|
| main (argc, argv)
| int argc;
| char **argv;
| { if (argc > 0)
| unlink(argv[1])
| };
|
| Use that to remove the bad directory. Now run fsck. (By the way,
| although I've done this a couple of times in the past, I haven't kept
| copies of my old changes, so I'm giving you this without having tested
| it. That is, I know the method works, but there could be a typo in
| what I'm giving you.)
At least one, the test you have "argc > 0" is always true. I would use
"argc==2" since there's no logic for other than one arg.
--
bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
I admit that when I was in school I wrote COBOL. But I didn't compile.