search for: zero_structp

Displaying 17 results from an estimated 17 matches for "zero_structp".

Did you mean: zero_struct
2002 Jun 03
2
Help with 2.2.4 binary build
...recognized option `-KPIC' Compiling nsswitch/wb_common.c with -KPIC gcc: unrecognized option `-KPIC' Compiling nsswitch/winbind_nss_solaris.c with -KPIC gcc: unrecognized option `-KPIC' In file included from nsswitch/winbind_nss_solaris.c:20: nsswitch/winbind_nss_config.h:135: warning: `ZERO_STRUCTP' redefined include/smb_macros.h:48: warning: this is the location of the previous definition Should I be concerned with the warning messages? What do I need to do to get rid of "unrecognized option `-KPIC'"? Any pointers will be appreciated! Desmond -- JNI Corporation -...
2002 May 09
1
patch to configure.in for Solaris/gcc (-KPIC vs. -fPIC)
...h 2002/03/22 00:03:49 1.3.4.9 +++ nsswitch/winbind_nss_config.h 2002/05/09 14:15:53 @@ -129,11 +129,15 @@ #endif /* zero a structure */ +#ifndef ZERO_STRUCT #define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x)) +#endif /* zero a structure given a pointer to the structure */ +#ifndef ZERO_STRUCTP #define ZERO_STRUCTP(x) { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); } - +#endif + /* Some systems (SCO) treat UNIX domain sockets as FIFOs */ #ifndef S_IFSOCK -------------- next part -------------- Index: configure.in ==========================================================...
2013 Feb 20
1
What will happen if I disable reverse check for \\server\printer on samba?
...GADD(3,("checking name: %s\n", r->in.printername)); result = open_printer_hnd(p, r->out.handle, r->in.printername, 0); if (!W_ERROR_IS_OK(result)) { DEBUG(0,("_spoolss_OpenPrinterEx: Cannot open a printer handle " "for printer %s\n", r->in.printername)); ZERO_STRUCTP(r->out.handle); return result; } In my specific environment it causes a problem, because when client calls the cluster under its public name, Samba performs this reverse check from inside the cluster and connects to a different cluster instance, causing printer installation to fail. I know, i...
2000 May 10
0
patche for samba-2.0.7/source/smbd/conn.c
...*conn)); - if (!conn) return NULL; + if ( cth.num_open >= MAX_CONNECTIONS ) { + DEBUG(1,("ERROR! Out of connection structures\n")); + return NULL; + } + + conn = ( connection_struct *)malloc( sizeof( *conn )); + if ( !conn ) { + return NULL; + } + ZERO_STRUCTP( conn ); + + + /* find empty */ + if ( cth.smallest_released >= 0 ) { + i = cth.smallest_released; + cth.smallest_released = SMALLEST_UNKNOWN; + /* cth.smallest_released will not be re-setted now. */ + } else if ( cth.smallest_released == SMALLEST_NONE ) { +...
2002 Jul 10
1
Samba 2.2.4 make fails on Solaris 8 (Ultra Sparc III) using Sun F orte 6-update 2 compilers
...p prototype: pointer to int : "nsswitch/winbind_nss.c", line 669 argument : pointer to unsigned long Compiling nsswitch/wb_common.c with -Kpic Compiling nsswitch/winbind_nss_solaris.c with -Kpic "nsswitch/winbind_nss_config.h", line 135: warning: macro redefined: ZERO_STRUCTP Linking nsswitch/libnss_winbind.so ld: fatal: file nsswitch/winbind_nss.po: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to nsswitch/libnss_winbind.so *** Error code 1 make: Fatal error: Command failed for target `nsswitch/libnss_winbind.so'
2002 Jul 11
1
Samba 2.2.4 make fails on Solaris 8 (Ultra Sparc III) using Sun Forte 6-update 2 compilers
...ter to int : "nsswitch/winbind_nss.c", line 669 > argument : pointer to unsigned long > Compiling nsswitch/wb_common.c with -Kpic > Compiling nsswitch/winbind_nss_solaris.c with -Kpic > "nsswitch/winbind_nss_config.h", line 135: warning: macro redefined: > ZERO_STRUCTP > Linking nsswitch/libnss_winbind.so > ld: fatal: file nsswitch/winbind_nss.po: wrong ELF class: ELFCLASS64 > ld: fatal: File processing errors. No output written to > nsswitch/libnss_winbind.so > *** Error code 1 > make: Fatal error: Command failed for target > `nsswitch/libn...
2018 Sep 12
0
eventlog functionality
...svc_NetSessCtr10 *ctr10, > uint32_t *resume_handle_p, > uint32_t *total_entries) > { > struct sessionid *session_list; > uint32_t num_entries = 0; > time_t now = time(NULL); > uint32_t resume_handle = resume_handle_p ? *resume_handle_p : 0; > > ZERO_STRUCTP(ctr10); > > if (ctr10 == NULL) { > if (resume_handle_p) { > *resume_handle_p = 0; > } > return WERR_OK; > } > > *total_entries = list_sessions(p->mem_ctx, &session_list); > > if (resume_handle >= *total_entries) { > if (resume...
2005 Nov 02
1
smbd processes never go away
I am having a problem with Samba 3.0.20b runninn on Fedora core 4, with a 2.6.11-1.1369_FC4smp kernel. Each time I open a connection a new smbd process is forked. That is fine, but then that process never goes away, even after the client has disconnected. Even though there are only a few clients who make an smb connection to the server in question, dozens and dozens of smbd processes are
2003 Feb 21
1
PATCH: downloading drivers from Solaris [was Re: So SAMBA no longer ...]
...numkeys[ENUMERATED_KEY_SIZE+1]; char* ptr = NULL; int i; - char *PrinterKey = "PrinterDriverData"; + fstring PrinterKey; + UNISTR2 uni_keys; + int enum_key_len; DEBUG(4,("_spoolss_enumprinterkey\n")); unistr2_to_dos(key, &q_u->key, sizeof(key) - 1); + ZERO_STRUCTP(PrinterKey); + fstrcpy( PrinterKey, "PrinterDriverData" ); + + /* add space for 2 terminating NULLs */ + + enum_key_len = strlen( PrinterKey ) + 2; + + /* * we only support enumating all keys (key == "") * Of course, the only key we support is the "PrinterDriverDat...
2018 Sep 12
2
eventlog functionality
On Wed, Sep 12, 2018 at 09:30:19AM -0700, Ray Klassen via samba wrote: > > and from the what the hell department. I did it. Comparing > > https://docs.microsoft.com/en-us/windows/desktop/api/lmshare/ns-lmshare-_session_info_1 > > > and > > https://docs.microsoft.com/en-us/windows/desktop/api/lmshare/ns-lmshare-_session_info_10 > > and > >
2002 Jul 10
1
samba 64 for Solaris
Hi, Does anyone of you succeeded in building a 64-bits version of Samba 2.2.5 for Solaris 8 ? If so, what is the corresponding Makefile or make options ? Thanks. Fabien
2005 Mar 21
3
File copying under WIN98
with the Samba3.0.12 release i encountered the following problem : when i try to copy a file from a samba share to the local disk then the process hangs with the windows-message "Preparing to copy" (my translation from the german message). In a WIN98-DOS-Windows the copy command hangs too, but the file is created. The copying from my WIN-XP HOME works. My previous installed version
2018 Sep 12
1
eventlog functionality
On Wed, 2018-09-12 at 16:23 -0700, Ray Klassen via samba wrote: > On 2018-09-12 09:44 AM, Jeremy Allison via samba wrote: > > > > On Wed, Sep 12, 2018 at 09:30:19AM -0700, Ray Klassen via samba > > wrote: > > > > > > > > > and from the what the hell department. I did it. Comparing > > > > > >
2005 Jul 12
5
Samba 3.0.20pre2 Available for Download
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ============================================================== Sometimes you have to be someone else in order to be yourself. -- Michael Samuel Finn ============================================================== Release Announcements ===================== This is a
2002 Jun 11
0
Sol 2.8-Samba 2.2.4-Sun WS 6 C Compiler-Compiler Warning Messages
...: prototype: pointer to int : "nsswitch/winbind_nss.c", line 669 argument : pointer to unsigned int Compiling nsswitch/wb_common.c with -KPIC Compiling nsswitch/winbind_nss_solaris.c with -KPIC "nsswitch/winbind_nss_config.h", line 135: warning: macro redefined: ZERO_STRUCTP Linking nsswitch/libnss_winbind.so 37 % +******+ This e-mail message is meant solely for the person or organisation to whom it is adressed. The message may contain personal or confidential information, or information that is not public in nature. Safetran Systems Corporation accepts no respon...
2003 Dec 01
0
No subject
...in SAMR_R_QUERY_DISPINFO\n")); @@ -1044,43 +1044,55 @@ data_size = q_u->max_size; - ctr = (SAM_DISPINFO_CTR *)talloc(p->mem_ctx,sizeof(SAM_DISPINFO_CTR)); + ctr = (SAM_DISPINFO_CTR *)talloc_zero(p->mem_ctx,sizeof(SAM_DISPINFO_CTR)); if (!ctr) return NT_STATUS_NO_MEMORY; + ZERO_STRUCTP(ctr); + /* Now create reply structure */ switch (q_u->switch_level) { case 0x1: - if (!(ctr->sam.info1 = (SAM_DISPINFO_1 *)talloc(p->mem_ctx,num_entries*sizeof(SAM_DISPINFO_1)))) - return NT_STATUS_NO_MEMORY; + if (num_entries) { + if (!(ctr->sam.info1 = (SAM_DISPINFO_1 *)ta...
2006 Jul 13
2
Kerberos Keytab Code Update in 3.0.23
First thing - I'd like to say a big "THANK YOU" to the developers. I just upgraded to samba-3.0.23 and I've noticed an alarming issue with respect to my configuration. I've been using the built-in keytab management and it looks like the updated code no longer creates the userPrincipal in Active Directory. Whether this is an issue for others or not, it would be nice to have