home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!alberta!cpsc.ucalgary.ca!xenlink!newt.cuc.ab.ca!deraadt
- From: deraadt@newt.cuc.ab.ca (Theo de Raadt)
- Subject: 386BSD: kvm_mkdb patch, whoops, whoops.
- Message-ID: <DERAADT.92Dec31152725@newt.newt.cuc.ab.ca>
- Sender: news@newt.cuc.ab.ca
- Nntp-Posting-Host: newt.fsa.ca
- Organization: little lizard city
- Date: Thu, 31 Dec 1992 22:27:25 GMT
- Lines: 29
-
- I errored in my patch to kvm_mkdb (my kvm_mkdb.c.old file was corrupt, not the
- new one). Here's the right patch.
-
- Problem was that if kvm_mkdb was given an argument, it would try to open the
- file kvm_mkdb (ie. argv[0]) instead of argv[1].
-
- *** kvm_mkdb.c.old Thu Dec 31 15:26:09 1992
- --- kvm_mkdb.c Mon Dec 28 21:58:18 1992
- ***************
- *** 71,77 ****
- argc -= optind;
- argv += optind;
-
- ! nlistpath = argc > 1 ? argv[0] : _PATH_UNIX;
- nlistname = basename(nlistpath);
-
- (void)sprintf(dbtemp, "%s/kvm_%s.tmp", _PATH_VARRUN, nlistname);
- --- 71,77 ----
- argc -= optind;
- argv += optind;
-
- ! nlistpath = argc > 1 ? argv[1] : _PATH_UNIX;
- nlistname = basename(nlistpath);
-
- (void)sprintf(dbtemp, "%s/kvm_%s.tmp", _PATH_VARRUN, nlistname);
-
- --
-
- This space not left unintentionally unblank. deraadt@newt.cuc.ab.ca
-