From 4c32978d973093903a5372a6f358275184bbcab2 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 20 Apr 2009 23:58:26 +0200 Subject: Remove smb_mkstemp() - libreplace will now provide a secure mkstemp() if the system one is broken. --- source3/smbd/message.c | 2 +- source3/smbd/reply.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/smbd') 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)) { -- cgit