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
damn, I had implicitly assumed signed characters when writing the
[rsync/rsync.git]
/
main.c
diff --git
a/main.c
b/main.c
index
8ca252f
..
936fdb9
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-294,6
+294,8
@@
void do_server_sender(int argc,char *argv[])
if (strcmp(dir,".")) {
int l = strlen(dir);
if (strcmp(dir,".")) {
int l = strlen(dir);
+ if (strcmp(dir,"/") == 0)
+ l = 0;
for (i=0;i<argc;i++)
argv[i] += l+1;
}
for (i=0;i<argc;i++)
argv[i] += l+1;
}
@@
-466,7
+468,7
@@
static struct option long_options[] = {
int main(int argc,char *argv[])
{
int main(int argc,char *argv[])
{
- int pid, status
, status2
;
+ int pid, status
= 0, status2 = 0
;
int opt;
int option_index;
char *shell_cmd = NULL;
int opt;
int option_index;
char *shell_cmd = NULL;