extern int am_daemon;
extern int am_root;
extern int module_id;
-extern int read_only;
extern int verbose;
extern int rsync_port;
extern int kludge_around_eof;
extern char *files_from;
char *auth_user;
+int read_only = 0;
/* Length of lp_path() string when in daemon mode & not chrooted, else 0. */
unsigned int module_dirlen = 0;
module_id = i;
+ if (lp_read_only(module_id))
+ read_only = 1;
+
am_root = (MY_UID() == 0);
if (am_root) {
io_printf(f_out, "@ERROR: setgid failed\n");
return -1;
}
-#ifdef HAVE_SETGROUPS
+#if HAVE_SETGROUPS
/* Get rid of any supplementary groups this process
* might have inheristed. */
if (setgroups(1, &gid)) {
start_glob = 1;
}
+ verbose = 0; /* future verbosity is controlled by client options */
argp = argv;
ret = parse_arguments(&argc, (const char ***) &argp, 0);