[Samba] Fix for smbpasswd Samba 2.2.4 on Solaris only taking 8 character passwords

Jeremy Allison jra at samba.org
Mon Jun 17 14:25:02 GMT 2002


On Mon, Jun 17, 2002 at 02:00:17PM -0700, Andrew Gray wrote:
> REPLACE_GETPASS is not defined.  Here seem to be the bits from config.log:
> 
> configure:14786: checking whether getpass should be replaced
> configure:14813:
> gcc -c -O   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I./ -I./include -I./
> ubiqx -I./smbwrapper conftest.c >&5
> In file included from lib/getsmbpass.c:21,
>                  from configure:14800:
> include/includes.h:689:18: popt.h: No such file or directory
> configure:14816: $? = 1
> configure: failed program was:
> #line 14795 "configure"
> #include "confdefs.h"
> 
> #define REPLACE_GETPASS 1
> #define NO_CONFIG_H 1
> #define main dont_declare_main
> #include "./lib/getsmbpass.c"
> #undef main
> 
> int
> main ()
> {
> 
>   ;
>   return 0;
> }
> configure:14834: result: no

This has been fixed in the SAMBA_2_2 CVS code, the GETPASS
check now looks like :

AC_CACHE_CHECK([whether getpass should be replaced],samba_cv_REPLACE_GETPASS,[
SAVE_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt  -I${srcdir-.}/smbwrapper"
....

Note that the popt directory is now included.

Thanks,

	Jeremy.




More information about the samba mailing list