Changeset 593


Ignore:
Timestamp:
1999-09-16T15:53:02+12:00 (25 years ago)
Author:
sjboddie
Message:

Fixed bug causing everything to die if it tripped over an unreadable
directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/RecPlug.pm

    r537 r593  
    6969
    7070    # read all the files in the directory
    71     opendir (DIR, $dirname) ||
    72         die "ERROR - couldn't read directory $dirname\n";
     71        if (!opendir (DIR, $dirname))
     72        {
     73            print STDERR "RecPlug: WARNING - couldn't read directory $dirname\n";
     74            return;
     75        }
     76
    7377    @dir = readdir (DIR);
    7478    closedir (DIR);
Note: See TracChangeset for help on using the changeset viewer.