mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 06:59:54 -05:00
Just use mkstemp unconditionally; liblutil will fill in if the system doesn't.
This commit is contained in:
parent
3d4c9a7284
commit
6159dfbe01
1 changed files with 0 additions and 9 deletions
|
|
@ -141,7 +141,6 @@ load_editor( void )
|
|||
printf("->load_editor()\n");
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MKSTEMP
|
||||
strcpy(entry_temp_file, LDAP_TMPDIR LDAP_DIRSEP "udXXXXXX");
|
||||
|
||||
{
|
||||
|
|
@ -158,14 +157,6 @@ load_editor( void )
|
|||
}
|
||||
}
|
||||
|
||||
#else
|
||||
fp = tmpfile();
|
||||
if ( fp == NULL ) {
|
||||
perror("tmpfile");
|
||||
return(-1);
|
||||
}
|
||||
#endif
|
||||
|
||||
fprintf(fp, "## Directory entry of %s\n", Entry.name);
|
||||
fprintf(fp, "##\n");
|
||||
fprintf(fp, "## Syntax is:\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue