mirror of
https://github.com/samba-team/samba.git
synced 2025-12-21 20:23:50 +03:00
Add a wrapper for dup2() to our system.c
Andrew Bartlett
This commit is contained in:
@@ -1219,6 +1219,16 @@ const char *sys_dlerror(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
int sys_dup2(int oldfd, int newfd)
|
||||
{
|
||||
#if defined(HAVE_DUP2)
|
||||
return dup2(oldfd, newfd);
|
||||
#else
|
||||
errno = ENOSYS;
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
Wrapper for Admin Logs.
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user