Ignore:
Timestamp:
Nov 29, 2012, 2:06:31 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9 2nd part

Location:
trunk/server
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/lib/replace/poll.c

    r745 r752  
    3131#include "replace.h"
    3232#include "system/select.h"
    33 
    34 #ifdef __OS2__
     33#ifdef HAVE_SYS_TIME_H
    3534#include <sys/time.h>
     35#endif
     36#ifdef HAVE_SYS_IOCTL_H
    3637#include <sys/ioctl.h>
    3738#endif
     
    4546        nfds_t i;
    4647
    47         if (fds == NULL) {
     48        if ((fds == NULL) && (nfds != 0)) {
    4849                errno = EFAULT;
    4950                return -1;
  • trunk/server/lib/replace/replace.h

    r745 r752  
    803803#endif
    804804
     805#if !defined(getpass)
     806#ifdef REPLACE_GETPASS
     807#if defined(REPLACE_GETPASS_BY_GETPASSPHRASE)
     808#define getpass(prompt) getpassphrase(prompt)
     809#else
     810#define getpass(prompt) rep_getpass(prompt)
     811char *rep_getpass(const char *prompt);
     812#endif
     813#endif
     814#endif
     815
    805816#endif /* _LIBREPLACE_REPLACE_H */
  • trunk/server/lib/replace/system/passwd.h

    r745 r752  
    6868#endif
    6969
    70 #if defined(REPLACE_GETPASS) && !defined(__OS2__)
     70#if !defined(getpass)
     71#ifdef REPLACE_GETPASS
    7172#if defined(REPLACE_GETPASS_BY_GETPASSPHRASE)
    7273#define getpass(prompt) getpassphrase(prompt)
     
    7475#define getpass(prompt) rep_getpass(prompt)
    7576char *rep_getpass(const char *prompt);
     77#endif
    7678#endif
    7779#endif
Note: See TracChangeset for help on using the changeset viewer.