smartd-runner bug causes loss of email recipients
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
smartmontools (Debian) |
New
|
Unknown
|
|||
smartmontools (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
*** Expected, documented, and desired behavior:
In /etc/smartd.conf it is permitted to specify multiple email recipients.
Here is the relevant snippet:
#######
DEFAULT -d removable -n standby \
-a -M test \
-s S/../.././01 \
-m root,jsd \
-M exec /usr/share/
#######
The last line is relevant, and the next-to-last line is super-relevant, insofar as it contains a comma-separated list of recipients.
The code in smartd itself handles this just fine, and always has.
*** Observed bad behavior:
I observe that the smartd-runner script throws away all recipients after the first.
*** Remark:
The root problem is that smartd-runner assumes it will be called with exactly three arguments.
It can be expected that this will cause multiple bugs, not just the one reported here.
*** Patch to fix the problem
A patch file is attached.
*** Platform details
ProblemType: Bug
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: MATE
Date: Mon May 10 07:13:51 2021
Dependencies:
debianutils 4.9.1
gcc-10-base 10.2.0-
libc6 2.31-0ubuntu9.2
libcap-ng0 0.7.9-2.1build1
libcrypt1 1:4.4.10-10ubuntu4
libgcc-s1 10.2.0-
libgcrypt20 1.8.5-5ubuntu1
libgpg-error-l10n 1.37-1
libgpg-error0 1.37-1
libidn2-0 2.2.0-2
liblz4-1 1.9.2-2
liblzma5 5.2.4-1ubuntu1
libpcre2-8-0 10.34-7
libselinux1 3.0-1build2
libstdc++6 10.2.0-
libsystemd0 245.4-4ubuntu3.6
libunistring2 0.9.10-2
lsb-base 11.1.0ubuntu2
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2010-07-10 (3957 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
Package: smartmontools 7.1-1build1 [modified: usr/share/
PackageArchitec
ProcCpuinfoMinimal:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz
stepping : 10
microcode : 0xa07
cpu MHz : 800.000
cache size : 6144 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl cpuid aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm pti tpr_shadow vnmi flexpriority vpid dtherm ida
vmx flags : vnmi flexpriority tsc_offset vtpr vapic
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips : 5585.85
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: smartmontools
Tags: focal
Uname: Linux 5.11.0+ x86_64
UpgradeStatus: Upgraded to focal on 2020-08-09 (273 days ago)
_MarkForUpload: True
modified.
modified.
modified.
mtime.conffile.
mtime.conffile.
mtime.conffile.
Changed in smartmontools (Debian): | |
status: | Unknown → New |
The attachment "smartd- runner. diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]