1
0
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:
Andrew Bartlett
-
parent 656f1d68e8
commit b24b6307f6

View File

@@ -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.
****************************************************************************/