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. #