# HG changeset patch # User Mahlon E. Smith # Date 1418776208 28800 # Node ID 589332cac30b056ab91c10515b9f80eb75e734e7 # Parent 39012216a450b17fb5f07df0fc48d06a1be874fc Use the system tempdir instead of hardcoding /tmp. diff -r 39012216a450 -r 589332cac30b shelldap --- a/shelldap Thu Dec 04 14:15:24 2014 -0800 +++ b/shelldap Tue Dec 16 16:30:08 2014 -0800 @@ -661,7 +661,7 @@ # 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; }