Ignore:
Timestamp:
Mar 12, 2008, 9:08:18 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.28a

Location:
branches/samba-3.0/source/lib/replace
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/lib/replace/getpass.c

    r1 r124  
    2020
    2121#include "replace.h"
     22
     23#if defined(REPLACE_GETPASS_BY_GETPASSPHRASE)
     24
     25#if defined(HAVE_STDIO_H)
     26#include <stdio.h>
     27#endif
     28
     29char *getsmbpass(const char *prompt)
     30{
     31        return getpassphrase(prompt);
     32}
     33
     34#else /* !REPLACE_GETPASS_BY_GETPASSPHRASE */
    2235
    2336#if defined(HAVE_TERMIOS_H)
     
    211224 void getsmbpasswd_dummy(void) {;}
    212225#endif
     226
     227#endif /* REPLACE_GETPASS_BY_GETPASSPHRASE */
  • branches/samba-3.0/source/lib/replace/getpass.m4

    r1 r124  
     1AC_CHECK_FUNC(getpass, samba_cv_HAVE_GETPASS=yes)
     2AC_CHECK_FUNC(getpassphrase, samba_cv_HAVE_GETPASSPHRASE=yes)
     3if test x"$samba_cv_HAVE_GETPASS" = x"yes" -a x"$samba_cv_HAVE_GETPASSPHRASE" = x"yes"; then
     4        AC_DEFINE(REPLACE_GETPASS_BY_GETPASSPHRASE, 1, [getpass returns <9 chars where getpassphrase returns <265 chars])
     5        AC_DEFINE(REPLACE_GETPASS,1,[Whether getpass should be replaced])
     6        LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o"
     7else
     8
    19AC_CACHE_CHECK([whether getpass should be replaced],samba_cv_REPLACE_GETPASS,[
    210SAVE_CPPFLAGS="$CPPFLAGS"
     
    1624        LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o"
    1725fi
     26
     27fi
  • branches/samba-3.0/source/lib/replace/libreplace.m4

    r30 r124  
    100100AC_CHECK_HEADERS(netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
    101101AC_CHECK_HEADERS(sys/sockio.h sys/un.h)
    102 
     102AC_CHECK_HEADERS(stropts.h)
    103103
    104104dnl we need to check that net/if.h really can be used, to cope with hpux
  • branches/samba-3.0/source/lib/replace/system/network.h

    r1 r124  
    7575#endif
    7676
     77#ifdef HAVE_STROPTS_H
     78#include <stropts.h>
     79#endif
     80
    7781#ifdef SOCKET_WRAPPER
    7882#ifndef SOCKET_WRAPPER_NOT_REPLACE
Note: See TracChangeset for help on using the changeset viewer.