crash when specifying both --help and $mail_report_on eq 'always'
Bug #1351000 reported by
pml@louisiana.edu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mylvmbackup |
Fix Released
|
Medium
|
Lenz Grimmer |
Bug Description
If the --help option is specified and $mail_report_on eq 'always', the $mail_buffer variable is never assigned a value so perl issues an error message:
Use of uninitialized value $mail_buffer in string at /usr/bin/
Since it is doubtful that a mail report is desired if --help is specified my solution was to add
$mail_report_on = 'never';
as the first line on the help() subroutine.
Related branches
Changed in mylvmbackup: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
That makes sense - thanks for the report and sorry for the late reply. I'll look into fixing this for the next release.