Displaying 1 result from an estimated 1 matches for "getservicebyname".
2003 Dec 01
0
No subject
...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 might already exist */
if (name)
{
- i = getservicebyname(name,NULL);
+ i = getservicebyname(name2,NULL);
if (i >= 0)
return(i);
}
@@ -1538,7 +1547,7 @@
init_service(pSERVICE(i));
copy_service(pSERVICE(i),&tservice,NULL);
if (name) {
- string_set(&iSERVICE(i).szService,name);
+ string_set(&iSERVICE(i).sz...