The Samba-Bugzilla – Attachment 996 Details for
Bug 2400
HP-UX 11.00 pam/winbind build (vsyslog, winbind_nss_solaris)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hp-ux 11.00 nsswitch build fix
samba-3.0.12pre1-hpux11.diff (text/plain), 2.68 KB, created by
Jeremy Monin
on 2005-03-01 05:28:40 UTC
(
hide
)
Description:
hp-ux 11.00 nsswitch build fix
Filename:
MIME Type:
Creator:
Jeremy Monin
Created:
2005-03-01 05:28:40 UTC
Size:
2.68 KB
patch
obsolete
>diff -ur samba-3.0.12pre1-orig/source/configure samba-3.0.12pre1/source/configure >--- samba-3.0.12pre1-orig/source/configure 2005-02-25 14:28:32.000000000 -0500 >+++ samba-3.0.12pre1/source/configure 2005-02-28 17:55:10.000000000 -0500 >@@ -37994,7 +37994,11 @@ > WINBIND_NSS_EXTRA_LIBS="-lsocket" > ;; > *hpux11*) >- WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o" >+ # HPUX winbind client is same source file as Solaris client; >+ # Solaris winbind client is implemented as a wrapper around >+ # the Linux version. >+ WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o \ >+ nsswitch/winbind_nss_linux.o" > ;; > *aix*) > # AIX has even differently named shared libraries. No >diff -ur samba-3.0.12pre1-orig/source/configure.in samba-3.0.12pre1/source/configure.in >--- samba-3.0.12pre1-orig/source/configure.in 2005-02-25 12:59:40.000000000 -0500 >+++ samba-3.0.12pre1/source/configure.in 2005-02-28 17:55:17.000000000 -0500 >@@ -4325,7 +4325,11 @@ > WINBIND_NSS_EXTRA_LIBS="-lsocket" > ;; > *hpux11*) >- WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o" >+ # HPUX winbind client is same source file as Solaris client; >+ # Solaris winbind client is implemented as a wrapper around >+ # the Linux version. >+ WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o \ >+ nsswitch/winbind_nss_linux.o" > ;; > *aix*) > # AIX has even differently named shared libraries. No >diff -ur samba-3.0.12pre1-orig/source/lib/replace.c samba-3.0.12pre1/source/lib/replace.c >--- samba-3.0.12pre1-orig/source/lib/replace.c 2005-02-25 12:59:32.000000000 -0500 >+++ samba-3.0.12pre1/source/lib/replace.c 2005-02-28 17:55:56.000000000 -0500 >@@ -418,21 +418,6 @@ > } > #endif /* HAVE_SETLINEBUF */ > >-#ifndef HAVE_VSYSLOG >-#ifdef HAVE_SYSLOG >- void vsyslog (int facility_priority, const char *format, va_list arglist) >-{ >- char *msg = NULL; >- vasprintf(&msg, format, arglist); >- if (!msg) >- return; >- syslog(facility_priority, "%s", msg); >- SAFE_FREE(msg); >-} >-#endif /* HAVE_SYSLOG */ >-#endif /* HAVE_VSYSLOG */ >- >- > #ifndef HAVE_TIMEGM > /* > yes, I know this looks insane, but its really needed. The function in the >diff -ur samba-3.0.12pre1-orig/source/lib/replace1.c samba-3.0.12pre1/source/lib/replace1.c >--- samba-3.0.12pre1-orig/source/lib/replace1.c 2005-02-25 12:59:32.000000000 -0500 >+++ samba-3.0.12pre1/source/lib/replace1.c 2005-02-28 17:56:06.000000000 -0500 >@@ -40,3 +40,19 @@ > return ret; > } > #endif >+ >+ >+#ifndef HAVE_VSYSLOG >+#ifdef HAVE_SYSLOG >+ void vsyslog (int facility_priority, const char *format, va_list arglist) >+{ >+ char *msg = NULL; >+ vasprintf(&msg, format, arglist); >+ if (!msg) >+ return; >+ syslog(facility_priority, "%s", msg); >+ SAFE_FREE(msg); >+} >+#endif /* HAVE_SYSLOG */ >+#endif /* HAVE_VSYSLOG */ >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2400
: 996