svn commit: samba r12939 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Sat Jan 14 20:26:08 GMT 2006


Author: jra
Date: 2006-01-14 20:26:07 +0000 (Sat, 14 Jan 2006)
New Revision: 12939

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12939

Log:
Fix for #3408 (change password fails) from William Jojo <jojowil at hvcc.edu>.
Jeremy.

Modified:
   trunk/source/smbd/chgpasswd.c


Changeset:
Modified: trunk/source/smbd/chgpasswd.c
===================================================================
--- trunk/source/smbd/chgpasswd.c	2006-01-14 20:25:51 UTC (rev 12938)
+++ trunk/source/smbd/chgpasswd.c	2006-01-14 20:26:07 UTC (rev 12939)
@@ -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