home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / protocol / kerberos / 987 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.4 KB

  1. Path: sparky!uunet!stanford.edu!enterpoop.mit.edu!senator-bedfellow.mit.edu!athena.mit.edu!jik
  2. From: jik@athena.mit.edu (Jonathan I. Kamens)
  3. Newsgroups: comp.protocols.kerberos
  4. Subject: V5 kinit patch: signal error if extra arguments
  5. Date: 6 Jan 1993 20:58:39 GMT
  6. Organization: Massachusetts Institute of Technology
  7. Lines: 30
  8. Distribution: world
  9. Message-ID: <1ifh5vINNslp@senator-bedfellow.MIT.EDU>
  10. NNTP-Posting-Host: pit-manager.mit.edu
  11.  
  12. V5 kinit ignores any arguments after the principal.  It should report an error.
  13. (because they're probably there because the person running the program put the
  14. arguments in the wrong order and needs to know about it).
  15.  
  16. This patch won't apply if you haven't applied Barry Jaspan's patch to add
  17. ksrvtgt functionality to kinit, but you can apply it by hand because it's
  18. obvious.
  19.  
  20.  
  21. *** 5.24        1992/12/24 21:32:16
  22. --- kinit.c     1993/01/06 20:54:16
  23. ***************
  24. *** 155,160 ****
  25. --- 155,166 ----
  26.         }
  27.       }
  28.   
  29. +     if (argc - optind > 1) {  /* extra arguments */
  30. +        fprintf(stderr, "Extra arguments (starting with \"%s\").\n",
  31. +                argv[optind+1]);
  32. +        errflg++;
  33. +     }
  34. +        
  35.       if (errflg) {
  36.         fprintf(stderr, "Usage: %s [-r time] [-puf] [-l lifetime] [-c cachename] [-k] [-t keytab] [principal]\n", argv[0]);
  37.         exit(2);
  38.  
  39. -- 
  40. Jonathan Kamens                                         jik@MIT.Edu
  41. Aktis, Inc.                                 Moderator, news.answers
  42.