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:
e094753
)
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:32:47 +0000
(11:32 +0200)
source/smbd/chgpasswd.c
patch
|
blob
|
history
diff --git
a/source/smbd/chgpasswd.c
b/source/smbd/chgpasswd.c
index e7ab60d22fdf9c203894d329fab0253c141932d3..b2b082363f94d157296fc42e9cda7db33b20e406 100644
(file)
--- 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"));