🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.protocols.kerberos
1 messages
1 total messages Started by Jonathan I. Kamens Wed, 06 Jan 1993 20:58
V5 kinit patch: signal error if extra arguments
#918
Author: Jonathan I. Kamens
Date: Wed, 06 Jan 1993 20:58
30 lines
1497 bytes
V5 kinit ignores any arguments after the principal.  It should report an error.
(because they're probably there because the person running the program put the
arguments in the wrong order and needs to know about it).

This patch won't apply if you haven't applied Barry Jaspan's patch to add
ksrvtgt functionality to kinit, but you can apply it by hand because it's
obvious.


*** 5.24        1992/12/24 21:32:16
--- kinit.c     1993/01/06 20:54:16
***************
*** 155,160 ****
--- 155,166 ----
        }
      }
  
+     if (argc - optind > 1) {  /* extra arguments */
+        fprintf(stderr, "Extra arguments (starting with \"%s\").\n",
+                argv[optind+1]);
+        errflg++;
+     }
+        
      if (errflg) {
        fprintf(stderr, "Usage: %s [-r time] [-puf] [-l lifetime] [-c cachename] [-k] [-t keytab] [principal]\n", argv[0]);
        exit(2);

-- 
Jonathan Kamens                                         jik@MIT.Edu
Aktis, Inc.                                 Moderator, news.answers
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads