summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2007-12-17 15:26:16 -0500
committerSimo Sorce <idra@samba.org>2007-12-17 15:26:16 -0500
commit2e44c4020b09c197e5835f3f646da6e4d5203af2 (patch)
tree495d21635f190e0e2c0c29b7a9ad045c45c5b1a7 /source3/smbd
parent4869ccfed6ba8c44fb49844a5a8abbb671518954 (diff)
parent8f28bda7f8c18de597d345126c9ee03e99776e55 (diff)
downloadsamba-2e44c4020b09c197e5835f3f646da6e4d5203af2.tar.gz
samba-2e44c4020b09c197e5835f3f646da6e4d5203af2.tar.bz2
samba-2e44c4020b09c197e5835f3f646da6e4d5203af2.zip
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-simo
(This used to be commit e940537d5be870ae622712a3b76dff891739df8c)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/chgpasswd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index 5ccf3ed9da..e478122e9b 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/smbd/chgpasswd.c
@@ -159,19 +159,19 @@ static int dochild(int master, const char *slavedev, const struct passwd *pass,
DEBUG(3, ("More weirdness, could not open %s\n", slavedev));
return (False);
}
-#if defined(I_PUSH) && defined(I_FIND)
+#if defined(TIOCSCTTY)
+ if (ioctl(slave, TIOCSCTTY, 0) < 0)
+ {
+ DEBUG(3, ("Error in ioctl call for slave pty\n"));
+ /* return(False); */
+ }
+#elif defined(I_PUSH) && defined(I_FIND)
if (ioctl(slave, I_FIND, "ptem") == 0) {
ioctl(slave, I_PUSH, "ptem");
}
if (ioctl(slave, I_FIND, "ldterm") == 0) {
ioctl(slave, I_PUSH, "ldterm");
}
-#elif defined(TIOCSCTTY)
- if (ioctl(slave, TIOCSCTTY, 0) < 0)
- {
- DEBUG(3, ("Error in ioctl call for slave pty\n"));
- /* return(False); */
- }
#endif
/* Close master. */