[dovecot-cvs] dovecot/src/deliver deliver.c,1.43,1.44

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


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

Modified Files:
	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.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- deliver.c	28 Dec 2006 12:26:46 -0000	1.43
+++ deliver.c	19 Jan 2007 20:26:45 -0000	1.44
@@ -467,10 +467,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