Allow --temp-dir to be specified with --daemon to set the default.
[rsync/rsync.git] / options.c
index aa231f7..0deb4fa 100644 (file)
--- a/options.c
+++ b/options.c
@@ -530,6 +530,7 @@ static struct poptOption long_daemon_options[] = {
   {"port",             0,  POPT_ARG_INT,    &rsync_port, 0, 0, 0 },
   {"protocol",         0,  POPT_ARG_INT,    &protocol_version, 0, 0, 0 },
   {"server",           0,  POPT_ARG_NONE,   &am_server, 0, 0, 0 },
+  {"temp-dir",        'T', POPT_ARG_STRING, &tmpdir, 0, 0, 0 },
   {"verbose",         'v', POPT_ARG_NONE,   0, 'v', 0, 0 },
   {"help",            'h', POPT_ARG_NONE,   0, 'h', 0, 0 },
   {0,0,0,0, 0, 0, 0}
@@ -1160,7 +1161,7 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
        }
 
        if (sparse_files && inplace) {
-               /* Note: we don't check for this below, because --update is
+               /* Note: we don't check for this below, because --append is
                 * OK with --sparse (as long as redos are handled right). */
                snprintf(err_buf, sizeof err_buf,
                         "--sparse cannot be used with --inplace\n");