diff options
author | Bob Beck <beck@cvs.openbsd.org> | 1998-06-10 03:49:44 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 1998-06-10 03:49:44 +0000 |
commit | ef804569935c0776440ff8e3bc6f84b1b04b56a2 (patch) | |
tree | 51d2e83877841d30bdba1e09f32c671fc8e26289 /libexec/identd/identd.c | |
parent | 33c10bd9ae8695bfa1ca5e5ee23b7654d248285d (diff) |
Now uses TCPCTL_IDENT sysctl to get uid associated with a connection
instead of kmem. Kmem parsing functions and options removed.
Diffstat (limited to 'libexec/identd/identd.c')
-rw-r--r-- | libexec/identd/identd.c | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/libexec/identd/identd.c b/libexec/identd/identd.c index 708888db449..95357a06482 100644 --- a/libexec/identd/identd.c +++ b/libexec/identd/identd.c @@ -37,9 +37,6 @@ extern int errno; extern char *version; -char *path_unix = NULL; -char *path_kmem = NULL; - int verbose_flag = 0; int debug_flag = 0; int syslog_flag = 0; @@ -105,7 +102,7 @@ main(argc, argv) struct group *grp; int background_flag = 0; int timeout = 0; - char *portno = "113"; + char *portno = "auth"; char *bind_address = NULL; int set_uid = 0; int set_gid = 0; @@ -145,7 +142,8 @@ main(argc, argv) ERROR1("no such user (%s) for -u option", argv[i] + 2); else { set_uid = pwd->pw_uid; - set_gid = pwd->pw_gid; + if (setgid == 0) + set_gid = pwd->pw_gid; } break; case 'g': @@ -197,24 +195,6 @@ main(argc, argv) } /* - * Path to kernel namelist file specified on command line - */ - if (i < argc) - path_unix = argv[i++]; - - /* - * Path to kernel memory device specified on command line - */ - if (i < argc) - path_kmem = argv[i++]; - - /* - * Open the kernel memory device and read the nlist table - */ - if (k_open() < 0) - ERROR("main: k_open"); - - /* * Do the special handling needed for the "-b" flag */ if (background_flag == 1) { |