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
Moved the options_rejected label to avoid a compiler warning on
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
954719d
..
dd47894
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-1246,12
+1246,8
@@
int parse_arguments(int *argc, const char ***argv, int frommain)
if (!*backup_dir)
goto options_rejected;
clean_fname(backup_dir, 1);
if (!*backup_dir)
goto options_rejected;
clean_fname(backup_dir, 1);
- if (check_filter(elp, backup_dir, 1) < 0) {
- options_rejected:
- snprintf(err_buf, sizeof err_buf,
- "Your options have been rejected by the server.\n");
- return 0;
- }
+ if (check_filter(elp, backup_dir, 1) < 0)
+ goto options_rejected;
}
}
}
}
@@
-1457,6
+1453,11
@@
int parse_arguments(int *argc, const char ***argv, int frommain)
am_starting_up = 0;
return 1;
am_starting_up = 0;
return 1;
+
+ options_rejected:
+ snprintf(err_buf, sizeof err_buf,
+ "Your options have been rejected by the server.\n");
+ return 0;
}
}