home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!alberta!cpsc.ucalgary.ca!xenlink!newt.cuc.ab.ca!deraadt
- From: deraadt@newt.cuc.ab.ca (Theo de Raadt)
- Subject: 386BSD: bugfix: kvm_mkdb
- Message-ID: <DERAADT.92Dec28215911@newt.newt.cuc.ab.ca>
- Sender: news@newt.cuc.ab.ca
- Nntp-Posting-Host: newt.fsa.ca
- Organization: little lizard city
- Date: Tue, 29 Dec 1992 04:59:11 GMT
- Lines: 25
-
- kvm_mkdb has a bug in it. It incorrectly uses argv[0] when it should use
- argv[1] for a parameter.
-
- *** kvm_mkdb.c Mon Dec 28 21:58:18 1992
- --- kvm_mkdb.c.old Mon Dec 28 21:59:58 1992
- ***************
- *** 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);
- --- 71,77 ----
- argc -= optind;
- argv += optind;
-
- ! nlistpath = argc > 0 ? 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
-