svn commit: samba r12938 - in branches/SAMBA_3_0/source/smbd: .
jra at samba.org
jra at samba.org
Sat Jan 14 20:25:51 GMT 2006
Author: jra
Date: 2006-01-14 20:25:51 +0000 (Sat, 14 Jan 2006)
New Revision: 12938
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12938
Log:
Fix for #3408 (change password fails) from William Jojo <jojowil at hvcc.edu>.
Jeremy.
Modified:
branches/SAMBA_3_0/source/smbd/chgpasswd.c
Changeset:
Modified: branches/SAMBA_3_0/source/smbd/chgpasswd.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/chgpasswd.c 2006-01-14 17:47:10 UTC (rev 12937)
+++ branches/SAMBA_3_0/source/smbd/chgpasswd.c 2006-01-14 20:25:51 UTC (rev 12938)
@@ -153,9 +153,13 @@
DEBUG(3, ("More weirdness, could not open %s\n", slavedev));
return (False);
}
-#ifdef I_PUSH
- ioctl(slave, I_PUSH, "ptem");
- ioctl(slave, I_PUSH, "ldterm");
+#if defined(I_PUSH) && defined(I_FIND)
+ if (ioctl(slave, I_FIND, "ptem") == 0) {
+ ioctl(slave, I_PUSH, "ptem");
+ }
+ if (ioctl(slave, I_FIND, "ldterm") == 0) {
+ ioctl(slave, I_PUSH, "ldterm");
+ }
#elif defined(TIOCSCTTY)
if (ioctl(slave, TIOCSCTTY, 0) < 0)
{
More information about the samba-cvs
mailing list