X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/6dd1782c42ed166c03ba5ac5a033cf1061167510..cbbe4892087b74fb8ed2aac6078ee933ac02e920:/main.c diff --git a/main.c b/main.c index d289a58a..ce5490ac 100644 --- a/main.c +++ b/main.c @@ -553,14 +553,15 @@ int main(int argc,char *argv[]) break; case 'l': -#if SUPPORT_LINKS preserve_links=1; -#endif break; case 'H': #if SUPPORT_HARD_LINKS preserve_hard_links=1; +#else + fprintf(FERROR,"ERROR: hard links not supported on this platform\n"); + exit_cleanup(1); #endif break; @@ -657,6 +658,13 @@ int main(int argc,char *argv[]) if (dry_run) verbose = MAX(verbose,1); +#ifndef SUPPORT_LINKS + if (!am_server && preserve_links) { + fprintf(FERROR,"ERROR: symbolic links not supported\n"); + exit_cleanup(1); + } +#endif + if (am_server) { setup_protocol(STDOUT_FILENO,STDIN_FILENO);