Commit 3a6e0e77 authored by david.verdin's avatar david.verdin
Browse files

[-bug] upgrade_send_spool.pl would fail because we tried to open a directory...

[-bug] upgrade_send_spool.pl would fail because we tried to open a directory using open instead of opendir.


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@11759 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 7341e123
......@@ -74,7 +74,7 @@ mkdir "$spool_dir/bad", 0755 unless -d "$spool_dir/bad";
mkdir "$spool_dir/moved", 0755 unless -d "$spool_dir/moved";
my ($dh, $filename);
unless (open $dh, $spool_dir) {
unless (opendir $dh, $spool_dir) {
printf STDERR "Cannot open directory %s.\n", $spool_dir;
exit 1;
}
......
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