[mythtv-commits] Ticket #3837: MythGallery does not check if call to mount() failed

MythTV mythtv at cvs.mythtv.org
Thu Aug 16 15:49:32 UTC 2007


#3837: MythGallery does not check if call to mount() failed
-------------------------+--------------------------------------------------
 Reporter:  anonymous    |       Owner:  ijr 
     Type:  defect       |      Status:  new 
 Priority:  minor        |   Milestone:  0.21
Component:  mythgallery  |     Version:  head
 Severity:  medium       |     Mlocked:  0   
-------------------------+--------------------------------------------------
 IconView::SetupMediaMonitor() calls m_currDevice->mount() but doesn't
 check to see if it succeeds or not.  It then tries to load the directory
 m_currDevice->getMountPath() which in the case of an empty string resolves
 to $HOME under Unix.  This is the cause of the problem that I reported in
 ticket #3815.  The attached patch fixes it.

 The reason why I saw the bug and noone else did is because I didn't have
 an entry for my cdrom in /etc/fstab which caused the call to mount() would
 fail.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3837>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list