Custom Query (1386 matches)
Results (196 - 198 of 1386)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#1546 | fixed | Possible buffer overflow in smartctl.cpp | ||
Description |
However, the corresponsing sscanf format specifier can be up to 10 bytes: https://www.smartmontools.org/browser/trunk/smartmontools/smartctl.cpp#L874 |
|||
#1543 | fixed | Add to driveDB WDC WD102KFBX | ||
Description |
10Tb Red Pro NAS drive |
|||
#1542 | fixed | update-smart-drivedb doesn't kill it's gpg-agent and throws errors on systems with root on NFS | ||
Description |
I use smartd daemon on machines with root filesystem. update-smart-drivedb doesn't kill it's gpg-agent process and tries to remove it's home dir (line 494). On NFS it doesn't work. Directory cannot be removed because nfs preserves delete open sockets/files. (script would have to rm -rf the directory twice) This error causes stderr message which creates additional mail (false positive) when cron is configured to send mail. This small patch kills the gpg-agent and allows for error free $gnupgtmp deletion. diff -c backup /usr/sbin/update-smart-drivedb *** backup 2021-11-04 14:29:14.665707108 +0100 --- /usr/sbin/update-smart-drivedb 2021-11-04 14:31:08.927219722 +0100 *************** *** 491,496 **** --- 491,497 ---- echo "$out" >&2 fi + kill $(ps ax | awk '$5=="gpg-agent" && /smartmontools/{print $2}') rm -f -r "$gnupgtmp" return $r Reproducible: Always Steps to Reproduce:
Actual Results: LC_ALL=C /etc/cron.monthly/smartmontools-update-drivedb rm: cannot remove '/var/db/smartmontools/.gnupg.139163.tmp': Directory not empty Script executes normal but has problem deleting it's gpg directory. Expected Results: There should be no stderr output when scripts executes normally. Script doesn't delete it's temporary directory. |