Tweaked the error message for RERR_WAITCHILD.
[rsync/rsync.git] / options.c
index 198a903..6a74117 100644 (file)
--- a/options.c
+++ b/options.c
@@ -296,8 +296,8 @@ void usage(enum logcode F)
   rprintf(F," -B, --block-size=SIZE       force a fixed checksum block-size\n");
   rprintf(F," -e, --rsh=COMMAND           specify the remote shell to use\n");
   rprintf(F,"     --rsync-path=PROGRAM    specify the rsync to run on the remote machine\n");
-  rprintf(F,"     --existing              only update files that already exist on receiver\n");
   rprintf(F,"     --ignore-existing       ignore files that already exist on receiving side\n");
+  rprintf(F,"     --ignore-non-existing   ignore files that don't exist on receiving side\n");
   rprintf(F,"     --remove-sent-files     sent files/symlinks are removed from sending side\n");
   rprintf(F,"     --del                   an alias for --delete-during\n");
   rprintf(F,"     --delete                delete files that don't exist on the sending side\n");
@@ -666,11 +666,10 @@ static OFF_T parse_size_arg(char **size_arg, char def_suf)
                mult = 1024;
        if ((p = strstr(arg, "+1")) != NULL
         || (p = strstr(arg, "-1")) != NULL) {
-               if (p[2] == '\0') {
-                       size = atoi(p + (*p == '+'));
-                       make_compatible = 1;
-               } else
-                       p = NULL;
+               if (p[2] != '\0')
+                       return -1;
+               size = atoi(p);
+               make_compatible = 1;
        }
        switch (*arg && arg != p ? *arg : def_suf) {
        case 'b': case 'B':