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

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!alberta!cpsc.ucalgary.ca!xenlink!newt.cuc.ab.ca!deraadt
  3. From: deraadt@newt.cuc.ab.ca (Theo de Raadt)
  4. Subject: 386BSD: kvm_mkdb patch, whoops, whoops.
  5. Message-ID: <DERAADT.92Dec31152725@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: Thu, 31 Dec 1992 22:27:25 GMT
  10. Lines: 29
  11.  
  12. I errored in my patch to kvm_mkdb (my kvm_mkdb.c.old file was corrupt, not the
  13. new one). Here's the right patch.
  14.  
  15. Problem was that if kvm_mkdb was given an argument, it would try to open the
  16. file kvm_mkdb (ie. argv[0]) instead of argv[1].
  17.  
  18. *** kvm_mkdb.c.old      Thu Dec 31 15:26:09 1992
  19. --- kvm_mkdb.c  Mon Dec 28 21:58:18 1992
  20. ***************
  21. *** 71,77 ****
  22.         argc -= optind;
  23.         argv += optind;
  24.   
  25. !       nlistpath = argc > 1 ? argv[0] : _PATH_UNIX;
  26.         nlistname = basename(nlistpath);
  27.   
  28.         (void)sprintf(dbtemp, "%s/kvm_%s.tmp", _PATH_VARRUN, nlistname);
  29. --- 71,77 ----
  30.         argc -= optind;
  31.         argv += optind;
  32.   
  33. !       nlistpath = argc > 1 ? argv[1] : _PATH_UNIX;
  34.         nlistname = basename(nlistpath);
  35.   
  36.         (void)sprintf(dbtemp, "%s/kvm_%s.tmp", _PATH_VARRUN, nlistname);
  37.  
  38. --
  39.  
  40. This space not left unintentionally unblank.        deraadt@newt.cuc.ab.ca
  41.