summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-04-11 11:34:33 +0200
committerVolker Lendecke <vl@samba.org>2008-04-11 11:32:47 +0200
commit245ebca937d1a98007ad8a85fbf7cdc812ba6316 (patch)
tree9fe6a676363873bb60b59d99294f308003a1fbe8
parentc575c85d587284eaf0afde269f6d4c2ae61423ee (diff)
downloadsamba-245ebca937d1a98007ad8a85fbf7cdc812ba6316.tar.gz
samba-245ebca937d1a98007ad8a85fbf7cdc812ba6316.tar.bz2
samba-245ebca937d1a98007ad8a85fbf7cdc812ba6316.zip
Fix bug 5366
(This used to be commit 448a8fe6c15bc4e85149d1ae821f0ebc2e3edde5)
-rw-r--r--source3/smbd/chgpasswd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index e7ab60d22f..b2b082363f 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/smbd/chgpasswd.c
@@ -159,7 +159,12 @@ 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(TIOCSCTTY)
+#if defined(TIOCSCTTY) && !defined(SUNOS5)
+ /*
+ * On patched Solaris 10 TIOCSCTTY is defined but seems not to work,
+ * see the discussion under
+ * https://bugzilla.samba.org/show_bug.cgi?id=5366.
+ */
if (ioctl(slave, TIOCSCTTY, 0) < 0)
{
DEBUG(3, ("Error in ioctl call for slave pty\n"));