From c2ac4d970274245d45190f22c33fd3d83a04bb4f Mon Sep 17 00:00:00 2001 From: "mahlon@laika.com" Date: Wed, 17 Dec 2014 00:30:08 +0000 Subject: [PATCH] Use the system tempdir instead of hardcoding /tmp. FossilOrigin-Name: 5ce69918bb8eb72b8b96c574ab8572aefeba075de38d1ea89552f3d61fb04034 --- shelldap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shelldap b/shelldap index 868bcf4..0c309a6 100755 --- a/shelldap +++ b/shelldap @@ -661,7 +661,7 @@ sub ldif # if ( $use_temp ) { my ( undef, $fname ) = - File::Temp::tempfile( 'shelldap_XXXXXXXX', SUFFIX => '.ldif', DIR => '/tmp', UNLINK => 1 ); + File::Temp::tempfile( 'shelldap_XXXXXXXX', SUFFIX => '.ldif', TMPDIR => 1, UNLINK => 1 ); $self->{'ldif'} = Net::LDAP::LDIF->new( $fname, 'w', sort => 1, wrap => 0 ); $self->{'ldif_fname'} = $fname; }