unix password sync

Jeremy Allison jallison at whistle.com
Thu Jul 2 16:51:28 GMT 1998


Tim Winders wrote:

> He said above he is running OSF/1 4.0 (Digital Unix).  I too am running
> Digital UNIX and have the same problem.  I can use the smbpasswd program
> just fine, but when I try to change the password using the Win95 password
> control panel, I get a core dump.  I sent a gdb trace, log file etc, but
> this hasn't been fixed.  I think the short answer is that "Win95 password
> changing is not supported under Digital Unix".
> 

I was about to look into this when someone sent me a fix
to Samba-bugs ! This is why I *love* Open Source software :-).

Tim - short patch follows (I will be checking this into the 1.9.18
branch and the head branch later today).

Cheers,

	Jeremy (ah, hayve always depended on the kindness
                of strangers :-) Allison.

-------------cut here-----------------------------
===================================================================
RCS file: /data/cvs/samba/source/chgpasswd.c,v
retrieving revision 1.24
diff -u -r1.24 chgpasswd.c
--- chgpasswd.c 1998/05/18 21:30:34     1.24
+++ chgpasswd.c 1998/07/02 16:54:43
@@ -77,7 +77,7 @@
 #else /* defined(SVR4) || defined(SUNOS5) */
   fstrcpy( line, "/dev/ptyXX" );
 
-  dirp = OpenDir(-1, "/dev", True);
+  dirp = OpenDir(-1, "/dev", False);
   if (!dirp) return(-1);
   while ((dpname = ReadDirName(dirp)) != NULL) {
     if (strncmp(dpname, "pty", 3) == 0 && strlen(dpname) == 5) {

-------------end patch----------------------------

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------


More information about the samba-ntdom mailing list