package smartmontools
reopen 649515
severity important
thanks

On Sat, May 12, 2012 at 06:35:45PM +0200, Martin von Gagern wrote:
> On 12.05.2012 12:57, Giuseppe Iuculano wrote:
> > You can check the diff of the fix at:
> > 
> >     
> > http://git.debian.org/?p=collab-maint/smartmontools.git;a=commitdiff;h=9a19418
> The fix is incorrect for two reasons.
> bash requires the space after the opening curly brace, otherwise it will
...
> bash also requires a final semicolon to end the list of commands. That

Reopening the bug due to this.
Raising the bug's severity since smartd now is not sending mails
anymore at all.

Here is what smartd syslog()s to daemon.log:
/etc/smartmontools/run.d/10mail:
/etc/smartmontools/run.d/10mail: line 4: exit: 1}: numeric argument required
run-parts: /etc/smartmontools/run.d/10mail exited with return code 255
Warning via /usr/share/smartmontools/smartd-runner to smart: failed 
(32-bit/8-bit exit status: 256/1) 

I personally would like to suggest using a "classic"
        if ! [ -x /usr/bin/mail ]; then
                ...
        fi
syntax to avoid and prevent such mistakes by less experienced
users/maintainers in the future, too.
This would, btw., also enable the script to use plain /bin/sh rather
than depending on bash.


Thanks for your work & regards
   Mario
-- 
Programmieren in C++ haelt die grauen Zellen am Leben. Es schaerft
alle fuenf Sinne: den Schwachsinn, den Bloedsinn, den Wahnsinn, den
Unsinn und den Stumpfsinn.
                                 [Holger Veit in doc]

Attachment: signature.asc
Description: Digital signature

Reply via email to