diff options
author | Peter Pentchev <roam@FreeBSD.org> | 2007-12-25 06:00:00 +0000 |
---|---|---|
committer | Peter Pentchev <roam@FreeBSD.org> | 2007-12-25 06:00:00 +0000 |
commit | df8f43848da2ae178086307933faadbd40ade716 (patch) | |
tree | cfed3b29eda7b4f19deeb29ee4bb469e5d237479 /mail/vpopmail/files/patch-vlist.c | |
parent | - Update to 0.06 (diff) |
Update the vpopmail port to version 5.4.26 with a lot of changes and fixes:
- add the WITH_SPAMFOLDER knob from Alex Dupre's PR;
- fix lots of bugs in the new vlist code;
- fix a couple of bugs in MySQL's "valias -n" implementation;
- actually implement "valias -n" for PostgreSQL;
- fix a couple of directory descriptor leaks and other buglets.
PR: 117321 (the WITH_SPAMFOLDER knob)
Submitted by: ale
Notes
Notes:
svn path=/head/; revision=204487
Diffstat (limited to 'mail/vpopmail/files/patch-vlist.c')
-rw-r--r-- | mail/vpopmail/files/patch-vlist.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/mail/vpopmail/files/patch-vlist.c b/mail/vpopmail/files/patch-vlist.c new file mode 100644 index 000000000000..1803f83340e3 --- /dev/null +++ b/mail/vpopmail/files/patch-vlist.c @@ -0,0 +1,37 @@ +diff -urN -x .svn ../../vendor/vpopmail/vlist.c ./vlist.c +--- ../../vendor/vpopmail/vlist.c 2007-12-25 05:03:25.000000000 +0200 ++++ ./vlist.c 2007-12-25 07:31:17.000000000 +0200 +@@ -44,6 +44,7 @@ + #include <sys/stat.h> + #include <sys/wait.h> + #include <dirent.h> ++#include <limits.h> + #include "vpopmail.h" + #include "config.h" + +@@ -79,7 +80,7 @@ + + void usage( int status, char *Message ) { + printf( "%s\n", Message ); +- printf( "vlist:\n usage: vlist list_name command \n"); ++ printf( "vlist:\n usage: vlist command1 list_name [command2 [address]]\n"); + printf("\n"); + printf("Commands that affect the entire list\n"); + printf(" vlist count domain \n"); +@@ -222,7 +223,7 @@ + char **Buffer = NULL; + int I=0; + +- Buffer = listList( LI, 1, 100 ); ++ Buffer = listList( LI, 1, INT_MAX ); + if( NULL != Buffer ) { + while( Buffer[I] != NULL ) { + printf( "%s\n", Buffer[I] ); +@@ -630,6 +631,7 @@ + // Parse the second command + // Note that the strncmp does not check all of the words. 1 or 2 chars is all that is needed. + if( command1 > 7 ) { ++ if( argc < 3 ) usage( 101, "At least four parameters are required\n"); + if( 0 == strncmp( argv[3], "count", 2 )) command2 = 1; + else if( 0 == strncmp( argv[3], "list", 1 )) command2 = 2; + else if( 0 == strncmp( argv[3], "add", 2 )) command2 = 3; |