Commit 5da2a1f6 authored by Clément OUDOT's avatar Clément OUDOT

Apply r3626 to 1.4 branch (#LEMONLDAP-793)

git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/branches/lemonldap-ng_version_1_4-bugfixes@3634 1dbb9719-a921-0410-b57f-c3a383c2c641
parent 2f40f919
......@@ -87,7 +87,10 @@ sub load {
my ( $self, $cfgNum, $fields ) = @_;
my $f;
local $/ = "";
open FILE, $self->{dirName} . "/lmConf-$cfgNum";
unless ( open FILE, $self->{dirName} . "/lmConf-$cfgNum" ) {
$Lemonldap::NG::Common::Conf::msg .= "Open file failed: $! \n";
return undef;
}
while (<FILE>) {
my ( $k, $v ) = split /\n\s+/;
chomp $k;
......
Markdown is supported
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