Skip to content
Snippets Groups Projects
Commit 9cca0b5b authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

fix exit code check of dir_rm_rf function

parent e51a9268
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ void parse_module(resolve_service_t *res, resolve_service_t *ares, unsigned int
goto deps ;
}
if (dir_rm_rf(path) < 0)
if (!dir_rm_rf(path))
log_dieusys (LOG_EXIT_SYS, "remove: ", path) ;
if (!hiercopy(dirname, path))
......
......@@ -83,7 +83,7 @@ int write_services(resolve_service_t *res, char const *workdir, uint8_t force)
if ((r && force) || !r) {
if (dir_rm_rf(wname) < 0)
if (!dir_rm_rf(wname))
log_dieusys(LOG_EXIT_SYS, "remove: ", wname) ;
if (!dir_create_parent(wname, 0755))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment