search for: inumservices

Displaying 3 results from an estimated 3 matches for "inumservices".

Did you mean: infoservices
2001 Dec 28
1
(patch) memory leak in loadparm.c
...2 03:16:15 2001 +++ loadparm.c Fri Dec 28 07:22:25 2001 @@ -108,7 +108,8 @@ /* - * This structure describes a single service. + * This structure describes a single service. If you update this, be + * sure to update init_globals below! */ typedef struct { @@ -179,6 +180,7 @@ static int iNumServices = 0; static int iServiceIndex = 0; static BOOL bInGlobalSection = True; +static BOOL bsDefaultInitialized = False; #define NUMPARAMETERS (sizeof(parm_table) / sizeof(struct parm_struct)) @@ -297,6 +299,28 @@ #ifdef LOG_DAEMON Globals.syslog_facility = LOG_DAEMON; #endif + if (!bsDefault...
2003 Dec 01
0
No subject
...dition. This patch truncates these share names and write a warning message. ---- Cut Here ---- For 2.0.9 ---- --- source/param/loadparm.c.org Sun Jun 3 22:18:19 2001 +++ source/param/loadparm.c Wed Jun 6 01:14:05 2001 @@ -1502,13 +1502,22 @@ int i; service tservice; int num_to_alloc = iNumServices+1; + pstring name2; tservice = *pservice; + /* shorten the share name if necessary */ + if (name) + { + strncpy(name2, name, 12); + if (strlen(name) > 12) + DEBUG(0,("Share name %s is longer than 12.\nshorten to %s\n", name, name2)); + } + /* it...
2003 Dec 01
0
No subject
...---- --- param/loadparm.c.org Sat Apr 22 02:43:12 2000 +++ param/loadparm.c Wed Jun 27 03:40:54 2001 @@ -2886,12 +2886,16 @@ ***************************************************************************/ int lp_servicenumber(char *pszServiceName) { - int iService; - - for (iService = iNumServices - 1; iService >= 0; iService--) - if (VALID(iService) && - strequal(lp_servicename(iService), pszServiceName)) - break; + int len, iService; + pstring service; + + len = (get_remote_arch() == RA_WIN2K) ? 127 : 12; + for (iService = iNumServices - 1; iS...