Skip to content
Snippets Groups Projects
Commit 6159dfbe authored by Howard Chu's avatar Howard Chu
Browse files

Just use mkstemp unconditionally; liblutil will fill in if the system doesn't.

parent 3d4c9a72
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment