X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/7a24c346b07d672c3d95bb44f16a0133f5197e3d..8212336aaa96715932f6d18476b2bc28f9e9f923:/options.c diff --git a/options.c b/options.c index be53d5a4..a58df938 100644 --- a/options.c +++ b/options.c @@ -99,11 +99,19 @@ struct in_addr socket_address = {INADDR_ANY}; static void print_rsync_version(void) { - rprintf(FINFO, "rsync version %s protocol version %d (%d-bit files)\n\n", - VERSION, PROTOCOL_VERSION, - sizeof(int64) * 8); - rprintf(FINFO, "Written by Andrew Tridgell and Paul Mackerras\n"); - rprintf(FINFO, "http://rsync.samba.org/\n"); + char const *got_socketpair = "no "; + +#ifdef HAVE_SOCKETPAIR + got_socketpair = ""; +#endif + + rprintf(FINFO, "rsync version %s protocol version %d\n", + VERSION, PROTOCOL_VERSION); + rprintf(FINFO, "Configuration: %d-bit files, %ssocketpairs\n\n", + sizeof(int64) * 8, + got_socketpair); + rprintf(FINFO, "Written by Andrew Tridgell and Paul Mackerras " + "\n\n"); #ifdef NO_INT64 rprintf(FINFO, "WARNING: no 64-bit integers on this platform!\n"); #endif @@ -613,6 +621,17 @@ int parse_arguments(int argc, char *argv[], int frommain) break; default: + /* FIXME: This can be confusing when the error message + * is coming from a remote server which has an older + * rsync version than the local version. The user + * sees the option documented in the local --help, but + * then the program seems to refuse to execute it. So + * perhaps the message should give the hostname or + * something. + * + * In rsync 3.x, it might be nice if options which + * only affect one end didn't have to bother the + * remote end. */ slprintf(err_buf,sizeof(err_buf),"unrecognised option\n"); return 0; }