mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Prefix all libc replacements with sudo_ and #define the real name
to the sudo_ version. That way we don't pollute the libc namespace.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2003, 2004, 2008-2011, 2013
|
||||
* Copyright (c) 2001, 2003, 2004, 2008-2011, 2013, 2014
|
||||
* Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
@@ -144,7 +144,7 @@ mktemp_internal(char *path, int slen, int mode)
|
||||
|
||||
#ifndef HAVE_MKSTEMPS
|
||||
int
|
||||
mkstemps(char *path, int slen)
|
||||
sudo_mkstemps(char *path, int slen)
|
||||
{
|
||||
return mktemp_internal(path, slen, MKTEMP_FILE);
|
||||
}
|
||||
@@ -152,7 +152,7 @@ mkstemps(char *path, int slen)
|
||||
|
||||
#ifndef HAVE_MKDTEMP
|
||||
char *
|
||||
mkdtemp(char *path)
|
||||
sudo_mkdtemp(char *path)
|
||||
{
|
||||
if (mktemp_internal(path, 0, MKTEMP_DIR) == -1)
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user