Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
f2f12b14
Unverified
Commit
f2f12b14
authored
Mar 07, 2020
by
Stefan Hornburg (Racke)
Browse files
Report error when archive directory exists to show possible permission problems.
parent
0f73fcbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Archive.pm
View file @
f2f12b14
...
...
@@ -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
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment