From 114c649570978499452987c040f35294572ef1ed Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 11 Apr 2008 11:34:33 +0200 Subject: [PATCH] Fix bug 5366 (cherry picked from commit 448a8fe6c15bc4e85149d1ae821f0ebc2e3edde5) --- source/smbd/chgpasswd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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")); -- 2.11.4.GIT