--- a/maildrop/main.C 2006-09-10 00:26:09.000000000 +0200 +++ b/maildrop/main.C 2006-09-10 00:37:05.000000000 +0200 @@ -687,8 +687,8 @@ { if ( !S_ISDIR(buf.st_mode)) tempfail("$HOME/.mailfilters should be a directory."); - if ( buf.st_mode & (S_IRWXO|S_IRWXG)) - tempfail("Invalid permissions on $HOME/.mailfilters - remove world and group perms."); + if ( buf.st_mode & S_IWOTH) + tempfail("Invalid permissions on $HOME/.mailfilters - world-writable."); if ( buf.st_uid != getuid()) tempfail("Invalid user ownership of $HOME/.mailfilters."); } @@ -882,8 +882,8 @@ if (!S_ISREG(stat_buf.st_mode)) tempfail("mailfilter file isn't a regular file."); - if (stat_buf.st_mode & (S_IRWXO | S_IRWXG)) - tempfail("Cannot have world/group permissions on the filter file - for your own good."); + if (stat_buf.st_mode & S_IWOTH) + tempfail("Invalid permissions on the filter file - world-writable."); if (stat_buf.st_uid != getuid()) tempfail("mailfilter file is owned by the wrong user.");