Author: coudot
Date: 2010-07-19 18:17:05 +0200 (Mon, 19 Jul 2010)
New Revision: 98
Modified:
ldap-scripts/trunk/file2ldif.pl
Log:
Manage empty CSV file. Closes #144
Modified: ldap-scripts/trunk/file2ldif.pl
===================================================================
--- ldap-scripts/trunk/file2ldif.pl 2010-07-19 16:14:33 UTC (rev 97)
+++ ldap-scripts/trunk/file2ldif.pl 2010-07-19 16:17:05 UTC (rev 98)
@@ -162,6 +162,7 @@
# Parse LDIF
while ( not $inldif->eof() ) {
my $entry = $inldif->read_entry();
+ next unless $entry;
if ( $inldif->error() ) {
print STDERR "Error msg: ", $inldif->error(), "\n";
print STDERR "Error lines:\n", $inldif->error_lines(), "\n";
_______________________________________________
ltb-changes mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-changes