[dovecot-cvs] dovecot/src/deliver deliver.c,1.20.2.22,1.20.2.23

tss at dovecot.org tss at dovecot.org
Fri Jan 19 20:26:45 UTC 2007


Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv25340

Modified Files:
      Tag: branch_1_0
	deliver.c 
Log Message:
Ignore empty parameters. "Unknown argument: xx" printed wrong argument.
Patch by Jan Srzednicki



Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.20.2.22
retrieving revision 1.20.2.23
diff -u -d -r1.20.2.22 -r1.20.2.23
--- deliver.c	28 Dec 2006 12:26:36 -0000	1.20.2.22
+++ deliver.c	19 Jan 2007 20:26:43 -0000	1.20.2.23
@@ -469,10 +469,10 @@
 					       "Missing envelope argument");
 			}
 			envelope_sender = argv[i];
-		} else {
+		} else if (argv[i][0] != '\0') {
 			print_help();
 			i_fatal_status(EX_USAGE,
-				       "Unknown argument: %s", argv[1]);
+				       "Unknown argument: %s", argv[i]);
 		}
 	}
 



More information about the dovecot-cvs mailing list