Blame SOURCES/rsync-3.1.3-skip-compress.patch
|
|
389997 |
diff --git a/loadparm.c b/loadparm.c
|
|
|
389997 |
index 029f358f..534e7b63 100644
|
|
|
389997 |
--- a/loadparm.c
|
|
|
389997 |
+++ b/loadparm.c
|
|
|
389997 |
@@ -449,7 +449,7 @@ static struct parm_struct parm_table[] =
|
|
|
389997 |
};
|
|
|
389997 |
|
|
|
389997 |
/* Initialise the Default all_vars structure. */
|
|
|
389997 |
-static void reset_all_vars(void)
|
|
|
389997 |
+void reset_daemon_vars(void)
|
|
|
389997 |
{
|
|
|
389997 |
memcpy(&Vars, &Defaults, sizeof Vars);
|
|
|
389997 |
}
|
|
|
389997 |
@@ -872,7 +872,7 @@ int lp_load(char *pszFname, int globals_only)
|
|
|
389997 |
{
|
|
|
389997 |
bInGlobalSection = True;
|
|
|
389997 |
|
|
|
389997 |
- reset_all_vars();
|
|
|
389997 |
+ reset_daemon_vars();
|
|
|
389997 |
|
|
|
389997 |
/* We get sections first, so have to start 'behind' to make up. */
|
|
|
389997 |
iSectionIndex = -1;
|
|
|
389997 |
diff --git a/main.c b/main.c
|
|
|
389997 |
index 1328c504..9af9e5d3 100644
|
|
|
389997 |
--- a/main.c
|
|
|
389997 |
+++ b/main.c
|
|
|
389997 |
@@ -1681,6 +1681,10 @@ int main(int argc,char *argv[])
|
|
|
389997 |
|
|
|
389997 |
memset(&stats, 0, sizeof(stats));
|
|
|
389997 |
|
|
|
389997 |
+ /* Even a non-daemon runs needs the default config values to be set, e.g.
|
|
|
389997 |
+ * lp_dont_compress() is queried when no --skip-compress option is set. */
|
|
|
389997 |
+ reset_daemon_vars();
|
|
|
389997 |
+
|
|
|
389997 |
if (argc < 2) {
|
|
|
389997 |
usage(FERROR);
|
|
|
389997 |
exit_cleanup(RERR_SYNTAX);
|