summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/smbrun.c2
-rw-r--r--source3/lib/util.c18
2 files changed, 1 insertions, 19 deletions
diff --git a/source3/lib/smbrun.c b/source3/lib/smbrun.c
index fdccd9ec97..14e6a7690c 100644
--- a/source3/lib/smbrun.c
+++ b/source3/lib/smbrun.c
@@ -42,7 +42,7 @@ static int setup_out_fd(void)
}
/* now create the file */
- fd = smb_mkstemp(path);
+ fd = mkstemp(path);
if (fd == -1) {
DEBUG(0,("setup_out_fd: Failed to create file %s. (%s)\n",
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 75fd82709a..c86f259ce3 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2114,24 +2114,6 @@ int set_maxfiles(int requested_max)
}
/*****************************************************************
- Possibly replace mkstemp if it is broken.
-*****************************************************************/
-
-int smb_mkstemp(char *name_template)
-{
-#if HAVE_SECURE_MKSTEMP
- return mkstemp(name_template);
-#else
- /* have a reasonable go at emulating it. Hope that
- the system mktemp() isn't completly hopeless */
- char *p = mktemp(name_template);
- if (!p)
- return -1;
- return open(p, O_CREAT|O_EXCL|O_RDWR, 0600);
-#endif
-}
-
-/*****************************************************************
malloc that aborts with smb_panic on fail or zero size.
*****************************************************************/