Skip to content

Commit 4b31539

Browse files
committedJun 15, 2011
Do not use _mktemp
1 parent 49fc519 commit 4b31539

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎su.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include <sqlite3.h>
2626

27-
extern char* _mktemp(char*); /* mktemp doesn't link right. Don't ask me why. */
27+
//extern char* _mktemp(char*); /* mktemp doesn't link right. Don't ask me why. */
2828

2929
#include "su.h"
3030

@@ -146,7 +146,7 @@ static int socket_create_temp()
146146
memset(&sun, 0, sizeof(sun));
147147
sun.sun_family = AF_LOCAL;
148148
strcpy(socket_path_buf, socket_path_template);
149-
socket_path = _mktemp(socket_path_buf);
149+
socket_path = mktemp(socket_path_buf);
150150
snprintf(sun.sun_path, sizeof(sun.sun_path), "%s", socket_path);
151151

152152
if (bind(fd, (struct sockaddr*)&sun, sizeof(sun)) < 0) {

0 commit comments

Comments
 (0)
Please sign in to comment.