diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-04-20 23:58:26 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-04-20 23:58:26 +0200 |
commit | 4c32978d973093903a5372a6f358275184bbcab2 (patch) | |
tree | b7f0331f4909d125215c1ffe042cdec4d0e63172 /source3/lib/util.c | |
parent | 6fc40ce0d3b1bdfe9a138db4953896f47094424e (diff) | |
download | samba-4c32978d973093903a5372a6f358275184bbcab2.tar.gz |
Remove smb_mkstemp() - libreplace will now provide a secure mkstemp() if
the system one is broken.
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 75fd82709a8..c86f259ce3f 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. *****************************************************************/ |