On Tue, Feb 15, 2005 at 04:15:27PM +0000, James Cummings wrote: > Package: gnump3d > Version: 2.9-1 > Severity: normal > > > cron.daily gives me this every day: > > /etc/cron.daily/gnump3d: > Use of uninitialized value in numeric lt (<) at > /usr/bin/gnump3d-index line 391. > > which means my mp3s aren't indexed properly.
If you run the program manually after changing /usr/bin/gnump3d-index lines 390ish from: --- original code --- # # Skip file if it's 0-bytes. Dunno why people # would want to do this, but I've had reports.. # my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks); ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat($file); next if ( $size < 1 ); --- end original code -- to this: ---- new code to test ---- # # Skip file if it's 0-bytes. Dunno why people # would want to do this, but I've had reports.. # my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks); ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat($file); next if not defined $size; next if ( $size < 1 ); ---- end new code to test ---- (We added another line 'next if not defined $size;') I think that should fix it, however I'm confused why the $size variable would be undefined. Are you sure the user who gnump3d is running as has permission to read (and stat) all the files beneath your root? Steve -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]