From 245ebca937d1a98007ad8a85fbf7cdc812ba6316 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 11 Apr 2008 11:34:33 +0200 Subject: Fix bug 5366 (This used to be commit 448a8fe6c15bc4e85149d1ae821f0ebc2e3edde5) --- source3/smbd/chgpasswd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/smbd/chgpasswd.c') 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")); -- cgit