search for: pservic

Displaying 5 results from an estimated 5 matches for "pservic".

Did you mean: servic
2009 Apr 22
2
[Code study] lp_motd_file defination? Help
Dear List, Currently, I read this in clientserver.c, line 148. motd = lp_motd_file(); I have googled, but didn't the definition of char *lp_motd_file(void). Can anyone help to explain the following code segment. Many thanks. #line 147 ~ 160, in clientserver.c, version 3.0.5 > if (!am_client) { > motd = lp_motd_file(); > if (motd && *motd) { > FILE *f =
2005 Jul 29
2
segment fault with 2.6.6 or CVS
...;t understand the code since I see 2 (global) definitions of lp_name first in t_stub.c char *lp_name(UNUSED(int mod)) { return NULL; } and second in loadparm.c FN_LOCAL_STRING(lp_name, name) where #define FN_LOCAL_STRING(fn_name,val) \ char *fn_name(int i) {return((LP_SNUM_OK(i)&&pSERVICE(i)->val)?pSERVICE(i)->val : (sDefault.val?sDefault.val:""));} #2 0x0806b9e5 in start_accept_loop (port=873, fn=0x80706a0 <start_daemon>) at socket.c:512 #3 0x0807181a in daemon_main () at clientserver.c:675 #4 0x08058cbf in main (argc=0, argv=0x0) at main.c:1154 Any...
2001 Mar 22
0
printcap = coredump
..., 0] lib/util.c:(2381) PANIC: internal error With this example, you can see that the printer prsdev01_ps adds fine. The next printer, prsdev01_engine, gets a -1 passed in as defaultservice where as every other printer up to this point gets a 1. I couldn't find what called lp_add_printer. pSERVICE(-1) is bad and so the program dies. If anyone can help me, i'd be greatful. thanks, Ryan
2009 Dec 29
0
aMSN segfaults at login after configuring my home network
..../sysdeps/posix/getaddrinfo.c:2162 i = <value optimized out> last_i = <value optimized out> nresults = <value optimized out> p = 0x0 gaih_service = {name = 0x10d13c <Address 0x10d13c out of bounds>, num = -1210556416} pservice = 0x0 local_hints = {ai_flags = -1073752584, ai_family = -1210155995, ai_socktype = -1073752504, ai_protocol = 21, ---Type <return> to continue, or q <return> to quit--- ai_addrlen = 3080590388, ai_addr = 0xb7b95d70, ai_canonname = 0xc7 <Address...
2003 Dec 01
0
No subject
...d 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 might already exist */ if (name) { -...