apport doesn't behave as intended

Bug #842113 reported by MasterPatricko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Fix Released
Medium
Dustin Kirkland 
byobu (Ubuntu)
Fix Released
Medium
Dustin Kirkland 
Oneiric
Fix Released
Medium
Dustin Kirkland 

Bug Description

as released, /usr/lib/byobu/apport will always alert about crash reports, even if non-existent

        for i in /var/crash/*.crash; do
                color y k; printf "{!}"; color --
                return
        done

executes always if there are no files in /var/crash.
If you want to do it this way you have to set nullglob (bash4) via
       shopt -s nullglob

or, more portable, wrap the inner part in a test

        for i in /var/crash/*.crash; do
                if [ -f $i ]; then
                     color y k; printf "{!}"; color --
                     return
                fi
        done

Changed in byobu:
importance: Undecided → Medium
Changed in byobu (Ubuntu):
importance: Undecided → Medium
Changed in byobu:
assignee: nobody → Dustin Kirkland (kirkland)
Changed in byobu (Ubuntu):
assignee: nobody → Dustin Kirkland (kirkland)
Changed in byobu:
status: New → Fix Committed
Changed in byobu (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package byobu - 4.33-0ubuntu1

---------------
byobu (4.33-0ubuntu1) oneiric; urgency=low

  * usr/lib/byobu/updates_available:
    - localize variables
    - save a fork
    - fix detection of updates, which only worked when there were security
      updates
  * usr/lib/byobu/.shutil: LP: #844994
    - the wget --timeout=1 was not working as desired, without the --tries=1
      option too; so local boots of ubuntu ec2 images that don't have a
      working metadata service might take several minutes for byobu to start
      while that wget tries repeatedly to reach the metadata service;
      big thanks to Ben Howard for helping triage and fix ;-)
  * usr/lib/byobu/apport: LP: #842113
    - fix broken detection of apport bug reports, thanks to lp:~masterpatricko
      for the suggested fix
  * etc/byobu/backend, usr/bin/byobu, usr/lib/byobu/.common,
    usr/lib/byobu/.dirs, usr/share/byobu/status/status,
    usr/share/man/man1/byobu.1: LP: #836090
    - fix handling of byobu backend (screen|tmux) handling; thanks to
      lp:~zorun-42 for the fix
  * usr/lib/byobu/swap: LP: #843446
    - make swap status behave like disk and memory (display usage even if
      zero)
 -- Dustin Kirkland <email address hidden> Fri, 26 Aug 2011 19:07:32 -0500

Changed in byobu (Ubuntu Oneiric):
status: Fix Committed → Fix Released
Changed in byobu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.