/[smecontribs]/rpms/smeserver-learn/contribs8/smeserver-learn-1.0.bz9446.chown-bayes_tok.patch
ViewVC logotype

Annotation of /rpms/smeserver-learn/contribs8/smeserver-learn-1.0.bz9446.chown-bayes_tok.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri Jul 29 09:39:00 2016 UTC (8 years, 3 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-learn-1_0-12_el5_sme, HEAD
* Fri Jul 29 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-12.sme
- fix permission problem on bayes_tok [SME: 9446]

1 unnilennium 1.1 diff -Nur smeserver-learn-1.0.old/root/usr/bin/Learn.pl smeserver-learn-1.0/root/usr/bin/Learn.pl
2     --- smeserver-learn-1.0.old/root/usr/bin/Learn.pl 2016-07-29 04:11:26.682000000 -0400
3     +++ smeserver-learn-1.0/root/usr/bin/Learn.pl 2016-07-29 05:33:45.249000000 -0400
4     @@ -238,6 +238,9 @@
5     my $newmd5 = Digest::MD5->new->addfile(SADB)->b64digest;
6     close(SADB);
7    
8     +# fix for bad ownership of bayes files
9     +system('/bin/chown','spamd:spamd','/var/spool/spamd/.spamassassin/bayes_toks');
10     +
11     if ($newmd5 ne $md5) {
12     `expand-template /etc/mail/spamassassin/local.cf`;
13     `/etc/init.d/spamd restart`;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed