Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
When running as --daemon in the background and using a "log file" rsyncd.conf
[rsync/rsync.git]
/
main.c
diff --git
a/main.c
b/main.c
index
5ac407a
..
e54ae8b
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-510,7
+510,9
@@
int client_run(int f_in, int f_out, int pid, int argc, char *argv[])
flist = recv_file_list(f_in);
if (!flist || flist->count == 0) {
flist = recv_file_list(f_in);
if (!flist || flist->count == 0) {
- rprintf(FINFO,"client: nothing to do\n");
+ rprintf(FINFO, "client: nothing to do: "
+ "perhaps you need to specify some filenames or "
+ "the --recursive option?\n");
exit_cleanup(0);
}
exit_cleanup(0);
}
@@
-555,11
+557,12
@@
static int start_client(int argc, char *argv[])
extern int am_sender;
extern char *shell_cmd;
extern int rsync_port;
extern int am_sender;
extern char *shell_cmd;
extern int rsync_port;
+ char *argv0 = strdup(argv[0]);
- if (strncasecmp(URL_PREFIX, argv
[0]
, strlen(URL_PREFIX)) == 0) {
+ if (strncasecmp(URL_PREFIX, argv
0
, strlen(URL_PREFIX)) == 0) {
char *host, *path;
char *host, *path;
- host = argv
[0]
+ strlen(URL_PREFIX);
+ host = argv
0
+ strlen(URL_PREFIX);
p = strchr(host,'/');
if (p) {
*p = 0;
p = strchr(host,'/');
if (p) {
*p = 0;
@@
-575,12
+578,12
@@
static int start_client(int argc, char *argv[])
return start_socket_client(host, path, argc-1, argv+1);
}
return start_socket_client(host, path, argc-1, argv+1);
}
- p = find_colon(argv
[0]
);
+ p = find_colon(argv
0
);
if (p) {
if (p[1] == ':') {
*p = 0;
if (p) {
if (p[1] == ':') {
*p = 0;
- return start_socket_client(argv
[0]
, p+2, argc-1, argv+1);
+ return start_socket_client(argv
0
, p+2, argc-1, argv+1);
}
if (argc < 1) {
}
if (argc < 1) {