summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-04-20 23:58:26 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-04-20 23:58:26 +0200
commit4c32978d973093903a5372a6f358275184bbcab2 (patch)
treeb7f0331f4909d125215c1ffe042cdec4d0e63172 /source3/smbd
parent6fc40ce0d3b1bdfe9a138db4953896f47094424e (diff)
downloadsamba-4c32978d973093903a5372a6f358275184bbcab2.tar.gz
samba-4c32978d973093903a5372a6f358275184bbcab2.tar.bz2
samba-4c32978d973093903a5372a6f358275184bbcab2.zip
Remove smb_mkstemp() - libreplace will now provide a secure mkstemp() if
the system one is broken.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/message.c2
-rw-r--r--source3/smbd/reply.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/message.c b/source3/smbd/message.c
index dbc833f091..e6d5f451cd 100644
--- a/source3/smbd/message.c
+++ b/source3/smbd/message.c
@@ -59,7 +59,7 @@ static void msg_deliver(struct msg_state *state)
if (!name) {
goto done;
}
- fd = smb_mkstemp(name);
+ fd = mkstemp(name);
if (fd == -1) {
DEBUG(1, ("can't open message file %s: %s\n", name,
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index e1364f2462..d2e1f8be5f 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -2214,7 +2214,7 @@ void reply_ctemp(struct smb_request *req)
return;
}
- tmpfd = smb_mkstemp(fname);
+ tmpfd = mkstemp(fname);
if (tmpfd == -1) {
reply_unixerror(req, ERRDOS, ERRnoaccess);
END_PROFILE(SMBctemp);
@@ -2244,7 +2244,7 @@ void reply_ctemp(struct smb_request *req)
NULL, /* pinfo */
&sbuf); /* psbuf */
- /* close fd from smb_mkstemp() */
+ /* close fd from mkstemp() */
close(tmpfd);
if (!NT_STATUS_IS_OK(status)) {