X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=dss.c;h=0bc891373bd7e6096063ebc45aa953582433d68c;hb=0f2b297697d2c5d0ab9ee71d51c2e47fb4508aba;hp=bdbdd043ef8c4651bf921a72050526b84c968a6d;hpb=59a00ae47578272f3ca9cf882ebeb5dfe16ba6c6;p=dss.git diff --git a/dss.c b/dss.c index bdbdd04..0bc8913 100644 --- a/dss.c +++ b/dss.c @@ -862,6 +862,10 @@ static int handle_rsync_exit(int status) if (es != 0 && es != 24) { DSS_WARNING_LOG(("rsync exit code %d, error count %d\n", es, ++num_consecutive_rsync_errors)); + if (conf.create_given) { + ret = -E_BAD_EXIT_CODE; + goto out; + } if (num_consecutive_rsync_errors > conf.max_rsync_errors_arg) { ret = -E_TOO_MANY_RSYNC_ERRORS; snapshot_creation_status = HS_READY;