http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11188

            Bug ID: 11188
           Summary: Make gather_print_notices.pl die on failed open()
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

Currently, gather_print_notices.pl tries to open a file to write notices to,
but it does not check that the open() succeeded. This can result in the
following error error, if you point at a location you do not have write access
to:

print() on closed filehandle $OUTPUT at
/usr/share/koha/bin/cronjobs/gather_print_notices.pl line 129.

But the script proceeds on its merry way, and marks the "pending" messages it
found as "sent", which means you can't re-run the script with another location
and gather up the notices you meant to gather up. 

I'll propose to replace the current "open(...)" with an "open(...) or die()". 

(I'll probably do a patch for this during training on Monday, so please don't
fix it before that :-)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to