Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #10231] MkDirP not working on Windows #3442
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10231
Created by mfrosch on 2015-09-28 13:53:20 +00:00
I call it the "mkdir --no-parents" problem.
Lets say I have a file structure like this:
When there is no non-empty file inside satellite/test/, the config sync silently fails, while not creating even the directory "test".
Looks like while trying to create directories for files, we not handle a non existing parent directory.
This only happens on Windows as far as I tested it...
Basically the agent is looping while refreshing the config and reloading itself:
2016-03-03 14:54:35 +00:00 by mfriedrich d14477c
2016-03-07 08:22:07 +00:00 by mfriedrich 65cbf04
2016-03-11 14:50:57 +00:00 by mfriedrich 9e833d7
2016-03-11 14:51:08 +00:00 by mfriedrich baecdc3
Updated by mfriedrich on 2016-03-03 12:45:28 +00:00
2.4.3 throws an exception.
Updated by mfriedrich on 2016-03-03 14:37:23 +00:00
Fix and some (to be removed) debug output. The culprit is the "/" on Windows, the win32 api functions provide support for both, slash and backslash notation. Find() does not ;-)