--- lmtp2nntp_main.c 2002/01/31 13:54:21 1.18
+++ lmtp2nntp_main.c 2002/01/31 14:20:09 1.19
@@ -370,8 +370,6 @@
char *cpValue;
int nValue;
struct passwd *sPasswd;
- char *cpHeadername;
- char *cpHeadervalue;
/* drop effective uid/gid priviledges */
seteuid(getuid());
@@ -458,28 +456,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 'h': /*POD [B<-h> I<header>:<value>] */
- cpHeadername = strdup(optarg);
- if ((cp = strchr(cpHeadername, ':')) == NULL) {
- free(cpHeadername);
- fprintf(stderr, "%s:Error: header \"%s\" for -h option not terminated with colon\n",
- ctx->progname, cpHeadername);
- CU(ERR_EXECUTION);
- }
- cp++;
- if (*cp == NUL) {
- free(cpHeadername);
- fprintf(stderr, "%s:Error: header \"%s\" for -h option has no value\n",
- ctx->progname, cpHeadername);
- CU(ERR_EXECUTION);
- }
- cpHeadervalue = strdup(cp);
- *cp = NUL;
- argz_add(&ctx->azHeaderValuePairs, &ctx->asHeaderValuePairs, cpHeadername);
- argz_add(&ctx->azHeaderValuePairs, &ctx->asHeaderValuePairs, cpHeadervalue);
- free(cpHeadervalue);
- free(cpHeadername);
- break;
case 'm': /*POD [B<-m> I<mailfrom>] */
ctx->option_mailfrom = strdup(optarg);
/* protect ourselfs from the substitution of backreferences.
|