219fbac8e4
fix build for SLES OBS-URL: https://build.opensuse.org/request/show/223319 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=74
23 lines
1.3 KiB
Diff
23 lines
1.3 KiB
Diff
Index: libpromises/bootstrap.c
|
|
===================================================================
|
|
--- libpromises/bootstrap.c.orig
|
|
+++ libpromises/bootstrap.c
|
|
@@ -332,7 +332,7 @@ bool WriteBuiltinFailsafePolicyToPath(co
|
|
" handle => \"cfe_internal_bootstrap_update_files_sys_workdir_inputs_not_windows\",\n"
|
|
#ifdef __MINGW32__
|
|
// This section is needed because Windows attempts to copy from "C:\Program Files\Cfengine\masterfiles".
|
|
- " copy_from => u_scp(\"/var/cfengine/masterfiles\"),\n"
|
|
+ " copy_from => u_scp(\"$(sys.workdir)/masterfiles\"),\n"
|
|
#else
|
|
" copy_from => u_scp(\"$(sys.masterdir)\"),\n"
|
|
#endif /* !__MINGW32__ */
|
|
@@ -344,7 +344,7 @@ bool WriteBuiltinFailsafePolicyToPath(co
|
|
" handle => \"cfe_internal_bootstrap_update_files_sys_workdir_inputs_windows\",\n"
|
|
#ifdef __MINGW32__
|
|
// This section is needed because Windows attempts to copy from "C:\Program Files\Cfengine\masterfiles".
|
|
- " copy_from => u_scp(\"/var/cfengine/masterfiles\"),\n"
|
|
+ " copy_from => u_scp(\"$(sys.workdir)/masterfiles\"),\n"
|
|
#else
|
|
" copy_from => u_scp(\"$(sys.masterdir)\"),\n"
|
|
#endif /* !__MINGW32__ */
|