--- samba-3.0.25b/source/smbd/chgpasswd.c 2007-03-01 05:54:06.000000000 +0100 +++ samba-3.0.25b.mod/source/smbd/chgpasswd.c 2007-10-19 14:47:53.880563530 +0200 @@ -67,6 +67,7 @@ SMB_STRUCT_DIR *dirp; const char *dpname; +#if 0 #if defined(HAVE_GRANTPT) /* Try to open /dev/ptmx. If that fails, fall through to old method. */ if ((master = sys_open("/dev/ptmx", O_RDWR, 0)) >= 0) @@ -90,6 +91,7 @@ } } #endif /* HAVE_GRANTPT */ +#endif fstrcpy(line, "/dev/ptyXX");