Make sure secrets file is not other-accessible, and owned by root if the
[rsync/rsync.git] / clientserver.c
index 7dee544..1cc6437 100644 (file)
@@ -187,6 +187,12 @@ static int rsync_module(int fd, int i)
                gid = atoi(p);
        }
 
+       p = lp_include_from(i);
+       add_exclude_file(p, 1, 1);
+
+       p = lp_include(i);
+       add_include_line(p);
+
        p = lp_exclude_from(i);
        add_exclude_file(p, 1, 0);
 
@@ -310,8 +316,7 @@ static int rsync_module(int fd, int i)
                io_start_multiplex_out(fd);
 
        if (!ret) {
-               rprintf(FERROR,"Error parsing options (unsupported option?) - aborting\n");
-               exit_cleanup(RERR_SYNTAX);
+               option_error();
        }
 
        if (lp_timeout(i)) {