#588158 spamassassin: Possible bashism in /usr/bin/sa-learn causes error message: trap: SIGINT: bad trap

#588158#5
Date:
2010-07-05 16:20:07 UTC
From:
To:

sa-learn called like this

/bin/su -s /bin/sh - amavis -c '/usr/bin/sa-learn --sync --force-expire'

generates following error message:

trap: SIGINT: bad trap
trap: SIGINT: bad trap

Even calling

/usr/sbin/amavisd-new-cronjob sa-clean

as root produces this error.

I think there is an incompatibilty with the default shell /bin/dash

If i call the sa-learn script with /bin/bash as shell the error does not occur.

regards,
Matthias