Unverified Commit f2f12b14 authored by Stefan Hornburg (Racke)'s avatar Stefan Hornburg (Racke)
Browse files

Report error when archive directory exists to show possible permission problems.

parent 0f73fcbb
......@@ -150,7 +150,13 @@ sub select_archive {
my $deleted_directory = $arc_directory . '/deleted';
my $dh;
return undef unless opendir $dh, $directory;
unless (opendir $dh, $directory) {
if ( -d $directory ) {
$log->syslog('err', 'Failed to open archive directory %s: %s',
$directory, $ERRNO);
}
return;
}
closedir $dh;
undef $self->{_metadatas};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment