Bug 1705 - Undefined subroutine crasher in Misc.pm (with patch)
: Undefined subroutine crasher in Misc.pm (with patch)
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 6.1.0
: PC Other
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-24 06:05 UTC by Jason Holtzapple
Modified: 2011-03-16 04:40 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Holtzapple 2005-06-24 06:05:30 UTC
Nightly build of v2005-06-23 crashes after some time:

Undefined subroutine &File::Spec::file_name_is_absolute called at
/home/slim/SlimServer_v2005-06-23/Slim/Utils/Misc.pm line 674, <GEN716> line 3.

Patch below fixes it for me, however to keep more in line with the calling
style of the rest of slimserver, you may want to just use the File::Spec
interface instead of File::Spec::Functions. But in that case more code might
need to be changed.

*** Misc.pm~    Fri Jun 24 06:02:01 2005
--- Misc.pm     Fri Jun 24 06:02:27 2005
***************
*** 671,677 ****
                return $virtual;
        }
        
!       if (File::Spec::file_name_is_absolute($virtual)) {
                $::d_paths && msg("virtualToAbsolute: $virtual is already
absolute.\n");
                return $virtual;
        }
--- 671,677 ----
                return $virtual;
        }
        
!       if (file_name_is_absolute($virtual)) {
                $::d_paths && msg("virtualToAbsolute: $virtual is already
absolute.\n");
                return $virtual;
        }
Comment 1 Dan Sully 2005-06-24 14:37:04 UTC
Fixed in subversion change 3540
Comment 2 Chris Owens 2008-03-11 11:28:22 UTC
This bug was marked resolved in Slimserver 6.1, which is several versions ago.  If you're still seeing this bug, please re-open it.  Thanks!