diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-04-13 20:16:54 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-04-13 20:16:54 +0000 |
commit | 0eaa5a30b1120a648055bfc7b64551d95c8f1181 (patch) | |
tree | dae3a8921943ba89314d2f8f36cb957aa270c5e8 /libexec/identd/identd.c | |
parent | e0b9aee7172725208c5f363db42f56a50ef27fa4 (diff) |
Add support for user specified tokens to identd. Based on a patch
from rjmooney@wall.st w/ minor tweakage by Theo and myself.
Diffstat (limited to 'libexec/identd/identd.c')
-rw-r--r-- | libexec/identd/identd.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libexec/identd/identd.c b/libexec/identd/identd.c index ebe6eaebb00..541fcc8985c 100644 --- a/libexec/identd/identd.c +++ b/libexec/identd/identd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identd.c,v 1.16 2001/03/28 21:48:31 fgsch Exp $ */ +/* $OpenBSD: identd.c,v 1.17 2001/04/13 20:16:53 millert Exp $ */ /* * This program is in the public domain and may be used freely by anyone @@ -45,6 +45,7 @@ int other_flag = 0; int unknown_flag = 0; int number_flag = 0; int noident_flag = 0; +int userident_flag = 0; int token_flag = 0; int lport = 0; @@ -65,7 +66,7 @@ usage() { syslog(LOG_ERR, "identd [-i | -w | -b] [-t seconds] [-u uid] [-g gid] [-p port] " - "[-a address] [-c charset] [-noelVvmNdh]"); + "[-a address] [-c charset] [-noelVvmNUdh]"); exit(2); } @@ -152,7 +153,7 @@ main(argc, argv) /* * Parse the command line arguments */ - while ((ch = getopt(argc, argv, "hbwit:p:a:u:g:c:r:loenVvdmN")) != -1) { + while ((ch = getopt(argc, argv, "hbwit:p:a:u:g:c:r:loenVvdmNU")) != -1) { switch (ch) { case 'h': token_flag = 1; @@ -219,7 +220,7 @@ main(argc, argv) number_flag = 1; break; case 'V': /* Give version of this daemon */ - printf("[in.identd, version %s]\r\n", version); + printf("[identd version %s]\r\n", version); exit(0); break; case 'v': /* Be verbose */ @@ -234,6 +235,9 @@ main(argc, argv) case 'N': /* Enable users ".noident" files */ noident_flag++; break; + case 'U': /* Enable user ".ident" files */ + userident_flag++; + break; default: usage(); } |