Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b7334b4
)
prevent nasty error msgs when listing shares
author
Andrew Tridgell
<tridge@samba.org>
Tue, 17 Jul 2001 10:45:54 +0000
(10:45 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 17 Jul 2001 10:45:54 +0000
(10:45 +0000)
clientserver.c
patch
|
blob
|
blame
|
history
diff --git
a/clientserver.c
b/clientserver.c
index
1baa1e0
..
00efea4
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-117,6
+117,9
@@
int start_socket_client(char *host, char *path, int argc, char *argv[])
}
if (strcmp(line,"@RSYNCD: OK") == 0) break;
}
if (strcmp(line,"@RSYNCD: OK") == 0) break;
+
+ if (strcmp(line,"@RSYNCD: EXIT") == 0) exit(0);
+
rprintf(FINFO,"%s\n", line);
}
rprintf(FINFO,"%s\n", line);
}
@@
-381,6
+384,8
@@
static void send_listing(int fd)
for (i=0;i<n;i++)
if (lp_list(i))
io_printf(fd, "%-15s\t%s\n", lp_name(i), lp_comment(i));
for (i=0;i<n;i++)
if (lp_list(i))
io_printf(fd, "%-15s\t%s\n", lp_name(i), lp_comment(i));
+
+ io_printf(fd, "@RSYNCD: EXIT\n");
}
/* this is called when a socket connection is established to a client
}
/* this is called when a socket connection is established to a client