X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=nsswitch%2Fwinbind_nss_config.h;h=fb3299d58a48b66f7eba75ad64a6928e2bf8ee94;hb=8f3be3dcff8c42a93be3c0841b34250c795fb1c4;hp=3e2ce68252ab98362b895061b2a7f66c85463a4d;hpb=a7109b183b555ee795c3e32c63e2647025705fc1;p=samba.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 */