Explicitly disable wrapping when writing to file, leaving it up to the

user's editor.  No reason to have shelldap and editor wrap battles.
Dennis Kaarsemaker <dennis.kaarsemaker@booking.com>

FossilOrigin-Name: 574bf5133459a4354682e6db80b0c87a907d124aca3aeaebd17b1285a64b23b9
This commit is contained in:
dennis.kaarsemaker@booking.com 2014-08-11 18:19:01 +00:00
parent 6a5a286c1e
commit 069692cbe0
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,6 @@
Adam Spiers <adam@spiers.net> Adam Spiers <adam@spiers.net>
Alexander Perlis <aperlis@math.lsu.edu> Alexander Perlis <aperlis@math.lsu.edu>
Dennis Kaarsemaker <dennis.kaarsemaker@booking.com>
Emile "iMil" Heitor <imil@home.imil.net> Emile "iMil" Heitor <imil@home.imil.net>
Gertjan Halkes <shelldap@ghalkes.nl> Gertjan Halkes <shelldap@ghalkes.nl>
Giacomo Tenaglia <Giacomo.Tenaglia@cern.ch> Giacomo Tenaglia <Giacomo.Tenaglia@cern.ch>

View file

@ -655,7 +655,7 @@ sub ldif
if ( $use_temp ) { if ( $use_temp ) {
my ( undef, $fname ) = my ( undef, $fname ) =
File::Temp::tempfile( 'shelldap_XXXXXXXX', SUFFIX => '.ldif', DIR => '/tmp', UNLINK => 1 ); File::Temp::tempfile( 'shelldap_XXXXXXXX', SUFFIX => '.ldif', DIR => '/tmp', UNLINK => 1 );
$self->{'ldif'} = Net::LDAP::LDIF->new( $fname, 'w', sort => 1, wrap => $self->wrapsize ); $self->{'ldif'} = Net::LDAP::LDIF->new( $fname, 'w', sort => 1, wrap => 0 )
$self->{'ldif_fname'} = $fname; $self->{'ldif_fname'} = $fname;
} }
@ -2248,7 +2248,7 @@ use strict;
use warnings; use warnings;
$0 = 'shelldap'; $0 = 'shelldap';
my $VERSION = '1.0.2'; my $VERSION = '1.2.0';
use Getopt::Long; use Getopt::Long;
use YAML::Syck; use YAML::Syck;