Bugzilla – Bug 1705
Undefined subroutine crasher in Misc.pm (with patch)
Last modified: 2011-03-16 04:40:38 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; }
Fixed in subversion change 3540
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!