Fix bug 5366
authorVolker Lendecke <vl@samba.org>
Fri, 11 Apr 2008 09:34:33 +0000 (11:34 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 11 Apr 2008 09:34:58 +0000 (11:34 +0200)
source/smbd/chgpasswd.c

index 2a4d96598ba236d6941e5796d531c5463eeebfc3..c8a32ed29c2b309bdc9dc29c873eed516bb15741 100644 (file)
@@ -154,7 +154,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"));