From 7eae67f0a33ae5423836d74d4903573398db8de2 Mon Sep 17 00:00:00 2001 From: "mahlon@laika.com" Date: Wed, 15 May 2013 19:17:51 +0000 Subject: [PATCH] Automatically use ldif syntax highlighting for editors that understand LDIF. (rickh_shelldap@printstring.com) FossilOrigin-Name: 8db00eefabf3ad6299552ad9aa401a21077c9e8a17647460947e484662dd0b65 --- shelldap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shelldap b/shelldap index 221dddb..11da145 100755 --- a/shelldap +++ b/shelldap @@ -617,7 +617,7 @@ sub ldif # if ( $use_temp ) { my ( undef, $fname ) = - File::Temp::tempfile( 'shelldap_XXXXXXXX', 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_fname'} = $fname; } @@ -1352,7 +1352,7 @@ sub run_create my $fh; ( $fh, $self->{'create_file'} ) = - File::Temp::tempfile( 'shelldap_XXXXXXXX', DIR => '/tmp', UNLINK => 1 ); + File::Temp::tempfile( 'shelldap_XXXXXXXX', SUFFIX => '.ldif', DIR => '/tmp', UNLINK => 1 ); # first print out the dn and object classes. #