On Thu, 2009-07-30 at 14:36 -0400, Alex wrote: > I recently upgraded perl from 5.6.0 to perl-5.10.0, along with all the > modules necessary for sa-3.2.5 and amavisd-new (an old version still). > I'm now having a problem that I really don't understand: > > Jul 30 14:24:30 bigship amavis[1757]: (01757-175) TROUBLE in ^^^^^^ > check_mail: decoding2-get-file-types FAILED: 'file' utility > (/usr/bin/file) failed, status=1 (256 ) at /usr/sbin/amavisd line > 4019.
> The amavisd children are running as a regular user. When I su to that > user and run "/usr/bin/file" with the files listed above, it > successfully returns the correct type of file. The lines in amavisd ^^^^^^^ > surrounding 4019 are: How's this a SA question? -- char *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}