Use the system tempdir instead of hardcoding /tmp.
FossilOrigin-Name: 5ce69918bb8eb72b8b96c574ab8572aefeba075de38d1ea89552f3d61fb04034
This commit is contained in:
parent
ae6677122c
commit
c2ac4d9702
1 changed files with 1 additions and 1 deletions
2
shelldap
2
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue