search for: lp_motd_fil

Displaying 6 results from an estimated 6 matches for "lp_motd_fil".

Did you mean: lp_motd_file
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 =...
2009 Apr 27
1
[Code study]should we remove if (motd && *motd) section?
...at Globals is set 0 during initialization, and I didn't find anywhere else assign the value. If so, should we remove this section? Or there might be some where I missed? Please correct me, if I'm wrong. Thanks in advance. clientserver.c #line 147~160 > if (!am_client) { > motd = lp_motd_file(); > if (motd && *motd) { > FILE *f = fopen(motd,"r"); > while (f && !feof(f)) { > int len = fread(buf, 1, bufsiz - 1, f); > if (len > 0) > write_buf(f_out, buf, len); > } > if (f) > fclose(f); > write_sbu...
2003 Apr 15
0
Patch for stderr logging
...mp;sDefault.timeout, NULL, 0}, @@ -305,6 +309,8 @@ static void init_globals(void) { memset(&Globals, 0, sizeof(Globals)); + Globals.log_timestamp = True; + Globals.log_pid = True; #ifdef LOG_DAEMON Globals.syslog_facility = LOG_DAEMON; #endif @@ -344,6 +350,8 @@ FN_GLOBAL_STRING(lp_motd_file, &Globals.motd_file) FN_GLOBAL_STRING(lp_log_file, &Globals.log_file) +FN_GLOBAL_BOOL(lp_log_timestamp, &Globals.log_timestamp) +FN_GLOBAL_BOOL(lp_log_pid, &Globals.log_pid) FN_GLOBAL_STRING(lp_pid_file, &Globals.pid_file) FN_GLOBAL_STRING(lp_socket_options, &Globals.soc...
2003 Jan 21
6
Please test rsync-2.5.6pre2
The second rsync-2.5.6 pre-release version is now available at: http://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre2.tar.gz ftp://rsync.samba.org/pub/rsync/preview/rsync-2.5.6pre2.tar.gz rsync://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre2.tar.gz There's also a corresponding '.sig' file that contains a gpg signature of the file; the public key is available on the
2001 Nov 20
2
rsync server over SSH [includes code patches]
...n int remote_version; if (!lp_load(config_file, 0)) { exit_cleanup(RERR_SYNTAX); } ! set_socket_options(fd,"SO_KEEPALIVE"); ! set_socket_options(fd,lp_socket_options()); ! set_nonblocking(fd); ! io_printf(fd,"@RSYNCD: %d\n", PROTOCOL_VERSION); motd = lp_motd_file(); if (motd && *motd) { --- 394,422 ---- io_printf(fd, "%-15s\t%s\n", lp_name(i), lp_comment(i)); } ! /* this is called when a connection is established to a client and we want to start talking. The setup of the system is done from here */ ! int start_da...
2003 Oct 03
2
Cygwin/rsync Hang Problem Testing Results
People of cygwin & rsync, I recently attempted to get cygwin and rsync working to solve a backup/mirroring need in my computer life. Well, as you might guess, I ran into a little but of trouble. Strangely enough, rsync seemed to be regularly hanging when I attempted to do a "get" (sycronize a remote to a local dir). Well, considering I want to automate this, that was not going