search for: lp_number

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

Did you mean: l_number
2002 Apr 03
4
Patch to avoid 'Connection reset by peer' error for rsync on cygwin
...send_listing(fd); - return -1; + goto exitwithnomodule; } if (*line == '#') { /* it's some sort of command that I don't understand */ io_printf(fd,"@ERROR: Unknown command '%s'\n", line); - return -1; + goto exitwithnomodule; } i = lp_number(line); if (i == -1) { io_printf(fd,"@ERROR: Unknown module '%s'\n", line); - return -1; + goto exitwithnomodule; } } return rsync_module(fd, i); + +exitwithnomodule: + shutdown(fd,SHUT_WR); + close(fd); + return -1; } END PATCH
2002 May 09
0
[PATCH] (Resubmission) 'Connection reset by peer' with rsync server on cygwin
...send_listing(fd); - return -1; + goto exitwithnomodule; } if (*line == '#') { /* it's some sort of command that I don't understand */ io_printf(fd,"@ERROR: Unknown command '%s'\n", line); - return -1; + goto exitwithnomodule; } i = lp_number(line); if (i == -1) { io_printf(fd,"@ERROR: Unknown module '%s'\n", line); - return -1; + goto exitwithnomodule; } } return rsync_module(fd, i); + +exitwithnomodule: + shutdown(fd,SHUT_WR); + close(fd); + return -1; } END PATCH
2003 Mar 11
0
PATCH: rsyncd.conf permission options
...5,10 @@ char *lp_dont_compress(int ); int lp_timeout(int ); int lp_max_connections(int ); +int lp_create_mask(int ); +int lp_force_create_mode(int ); +int lp_directory_mask(int ); +int lp_force_directory_mode(int ); BOOL lp_load(char *pszFname, int globals_only); int lp_numservices(void); int lp_number(char *name); diff -ur rsync-2.5.5/rsync.c rsync-2.5.5-umask/rsync.c --- rsync-2.5.5/rsync.c Thu Dec 20 16:33:13 2001 +++ rsync-2.5.5-umask/rsync.c Sun Mar 2 22:26:40 2003 @@ -150,6 +150,8 @@ int updated = 0; STRUCT_STAT st2; int change_uid, change_gid; + extern int am_daemon; + extern int mo...
2003 Jun 07
1
patch to rsync to add options for pre- and post-transfer commands
...c-2.5.6.orig/proto.h rsync-2.5.6/proto.h *** rsync-2.5.6.orig/proto.h 2003-01-26 20:35:09.000000000 -0700 --- rsync-2.5.6/proto.h 2003-04-27 11:34:53.000000000 -0600 *************** *** 151,156 **** --- 151,158 ---- BOOL lp_load(char *pszFname, int globals_only); int lp_numservices(void); int lp_number(char *name); + char *lp_prescript(int ); + char *lp_postscript(int ); void err_list_push(void); void log_init(void); void log_open(void); Only in rsync-2.5.6: rsync Only in rsync-2.5.6: rsync_script.patch Only in rsync-2.5.6: shconfig diff --exclude='*.o' -b --context rsync-2.5.6.orig...
2001 Nov 20
2
rsync server over SSH [includes code patches]
...|| strcmp(line,"#list")==0) { ! send_listing(fd); return -1; } if (*line == '#') { /* it's some sort of command that I don't understand */ ! io_printf(fd,"@ERROR: Unknown command '%s'\n", line); return -1; } i = lp_number(line); if (i == -1) { ! io_printf(fd,"@ERROR: Unknown module '%s'\n", line); return -1; } } ! return rsync_module(fd, i); } - int daemon_main(void) { extern char *config_file; --- 425,473 ---- int len = fread(line, 1, sizeof(line)-1, f);...