X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=nsswitch%2Fwinbind_nss_config.h;h=fb3299d58a48b66f7eba75ad64a6928e2bf8ee94;hb=3c146be404affc894c0c702bbfbfcc4fb9ed902b;hp=3e2ce68252ab98362b895061b2a7f66c85463a4d;hpb=6821d898d7ecf10c6a9359560c5cf1c50a812b62;p=amitay%2Fsamba.git diff --git a/nsswitch/winbind_nss_config.h b/nsswitch/winbind_nss_config.h index 3e2ce68252a..fb3299d58a4 100644 --- a/nsswitch/winbind_nss_config.h +++ b/nsswitch/winbind_nss_config.h @@ -27,15 +27,6 @@ #undef SIZEOF_LONG #endif -/* - * we don't need socket wrapper - * nor nss wrapper here and we don't - * want to depend on swrap_close() - * so we better disable both - */ -#define SOCKET_WRAPPER_NOT_REPLACE -#define NSS_WRAPPER_NOT_REPLACE - /* Include header files from data in config.h file */ #ifndef NO_CONFIG_H @@ -54,7 +45,13 @@ #ifndef FSTRING_LEN #define FSTRING_LEN 256 typedef char fstring[FSTRING_LEN]; -#define fstrcpy(d,s) safe_strcpy((d),(s),sizeof(fstring)-1) +#ifndef fstrcpy +#define fstrcpy(d,s) \ +do { \ + const char *_fstrcpy_src = (const char *)(s); \ + strlcpy((d),_fstrcpy_src ? _fstrcpy_src : "",sizeof(fstring)); \ +} while (0) +#endif #endif /* Some systems (SCO) treat UNIX domain sockets as FIFOs */