From: Howard Chu Date: Tue, 18 Dec 2001 03:04:32 +0000 (+0000) Subject: Just use mkstemp unconditionally; liblutil will fill in if the system doesn't. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~620 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6159dfbe012a1f817d1b8b4ab56a1721d97a75c0;p=openldap Just use mkstemp unconditionally; liblutil will fill in if the system doesn't. --- diff --git a/clients/ud/edit.c b/clients/ud/edit.c index 53aeb57dfd..ebef1f2084 100644 --- a/clients/ud/edit.c +++ b/clients/ud/edit.c @@ -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");