From: Volker Lendecke Date: Fri, 11 Apr 2008 09:34:33 +0000 (+0200) Subject: Fix bug 5366 X-Git-Tag: samba-3.3.0pre1~2746 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=448a8fe6c15bc4e85149d1ae821f0ebc2e3edde5;p=thirdparty%2Fsamba.git Fix bug 5366 --- diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c index e7ab60d22fd..b2b082363f9 100644 --- a/source/smbd/chgpasswd.c +++ b/source/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"));