git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b11de3
)
Fix bug 5366
author
Volker Lendecke
<vl@samba.org>
Fri, 11 Apr 2008 09:34:33 +0000
(11:34 +0200)
committer
Volker Lendecke
<vl@samba.org>
Fri, 11 Apr 2008 09:34:58 +0000
(11:34 +0200)
source/smbd/chgpasswd.c
patch
|
blob
|
history
diff --git
a/source/smbd/chgpasswd.c
b/source/smbd/chgpasswd.c
index 2a4d96598ba236d6941e5796d531c5463eeebfc3..c8a32ed29c2b309bdc9dc29c873eed516bb15741 100644
(file)
--- a/
source/smbd/chgpasswd.c
+++ b/
source/smbd/chgpasswd.c
@@
-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"));