diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-11-01 03:58:14 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-11-01 03:58:14 +0100 |
commit | 5a56c0adf2c63602b819d052644cb14caf732438 (patch) | |
tree | 37c6725a0ed7cfcf9708de335e21b52fc2a46c20 /source3/smbd | |
parent | df766a303a9114969caa7c51e5e0e29d8e0e3850 (diff) | |
download | samba-5a56c0adf2c63602b819d052644cb14caf732438.tar.gz samba-5a56c0adf2c63602b819d052644cb14caf732438.tar.bz2 samba-5a56c0adf2c63602b819d052644cb14caf732438.zip |
Use dup2() replacement from libreplace.
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/chgpasswd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c index 64a4311256..e6d2bbf59f 100644 --- a/source3/smbd/chgpasswd.c +++ b/source3/smbd/chgpasswd.c @@ -184,17 +184,17 @@ static int dochild(int master, const char *slavedev, const struct passwd *pass, /* Make slave stdin/out/err of child. */ - if (sys_dup2(slave, STDIN_FILENO) != STDIN_FILENO) + if (dup2(slave, STDIN_FILENO) != STDIN_FILENO) { DEBUG(3, ("Could not re-direct stdin\n")); return (False); } - if (sys_dup2(slave, STDOUT_FILENO) != STDOUT_FILENO) + if (dup2(slave, STDOUT_FILENO) != STDOUT_FILENO) { DEBUG(3, ("Could not re-direct stdout\n")); return (False); } - if (sys_dup2(slave, STDERR_FILENO) != STDERR_FILENO) + if (dup2(slave, STDERR_FILENO) != STDERR_FILENO) { DEBUG(3, ("Could not re-direct stderr\n")); return (False); |