OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/lmtp2nntp_main.c versions 1.25 and 1.26
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/lmtp2nntp_main.c 1.25 -> 1.26

--- lmtp2nntp_main.c     2002/01/31 15:32:51     1.25
+++ lmtp2nntp_main.c     2002/01/31 15:42:31     1.26
@@ -36,7 +36,6 @@
 #include <sys/wait.h>
 #include <sys/stat.h>
 #include <signal.h>
-#include <pwd.h>
 
 /* third party (included) */
 #include "lmtp2nntp_argz.h"
@@ -357,7 +356,6 @@
     int           i;             /* general purpose scratch int, index ... */
     pid_t         pid;
     FILE         *fd;
-    struct passwd *sPasswd;
 
     /* drop effective uid/gid priviledges */
     seteuid(getuid());
@@ -444,21 +442,6 @@
     /* read in the arguments */
     while ((i = getopt(argc, argv, "C:DKP:Va:b:c:d:g:h:l:m:n:o:r:s:t:u:v")) != -1) {
         switch (i) {
-            case 'u': /*POD [B<-u> I<uid>] */
-                if (isdigit((int)optarg[0])) {
-                    if ((sPasswd = getpwuid((uid_t)atoi(optarg))) == NULL) {
-                        fprintf(stderr, "%s:Error: uid \"%s\" not found for -u option.\n", ctx->progname, optarg);
-                        CU(ERR_EXECUTION);
-                    }
-                }
-                else {
-                    if ((sPasswd = getpwnam(optarg)) == NULL) {
-                        fprintf(stderr, "%s:Error: loginname \"%s\" not found for -u option.\n", ctx->progname, optarg);
-                        CU(ERR_EXECUTION);
-                    }
-                }
-                ctx->option_uid = sPasswd->pw_uid;
-                break;
             case 'v': /*POD [B<-v>] (version)*/
                 fprintf(stdout, "%s\n", lmtp2nntp_version.v_gnu);
                 CU(0);

CVSTrac 2.0.1