home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / bsd / 10720 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.1 KB  |  37 lines

  1. Newsgroups: comp.unix.bsd
  2. 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
  3. From: deraadt@newt.cuc.ab.ca (Theo de Raadt)
  4. Subject: 386BSD: bugfix: kvm_mkdb
  5. Message-ID: <DERAADT.92Dec28215911@newt.newt.cuc.ab.ca>
  6. Sender: news@newt.cuc.ab.ca
  7. Nntp-Posting-Host: newt.fsa.ca
  8. Organization: little lizard city
  9. Date: Tue, 29 Dec 1992 04:59:11 GMT
  10. Lines: 25
  11.  
  12. kvm_mkdb has a bug in it. It incorrectly uses argv[0] when it should use
  13. argv[1] for a parameter.
  14.  
  15. *** kvm_mkdb.c    Mon Dec 28 21:58:18 1992
  16. --- kvm_mkdb.c.old    Mon Dec 28 21:59:58 1992
  17. ***************
  18. *** 71,77 ****
  19.       argc -= optind;
  20.       argv += optind;
  21.   
  22. !     nlistpath = argc > 1 ? argv[1] : _PATH_UNIX;
  23.       nlistname = basename(nlistpath);
  24.   
  25.       (void)sprintf(dbtemp, "%s/kvm_%s.tmp", _PATH_VARRUN, nlistname);
  26. --- 71,77 ----
  27.       argc -= optind;
  28.       argv += optind;
  29.   
  30. !     nlistpath = argc > 0 ? argv[1] : _PATH_UNIX;
  31.       nlistname = basename(nlistpath);
  32.   
  33.       (void)sprintf(dbtemp, "%s/kvm_%s.tmp", _PATH_VARRUN, nlistname);
  34. --
  35.  
  36. This space not left unintentionally unblank.        deraadt@newt.cuc.ab.ca
  37.