summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b024d07)
A failing call to mkdir() returned 0 instead of an error and was
creating a segfault later on since some memory was not initialized.
Signed-off-by: David Goulet <dgoulet@efficios.com>
ret = mkdir(path, S_IRWXU);
if (ret < 0) {
if (errno != EEXIST) {
ret = mkdir(path, S_IRWXU);
if (ret < 0) {
if (errno != EEXIST) {
ERR("Failed to create %s", path);
goto error;
}
ERR("Failed to create %s", path);
goto error;
}
}
/* Create the kconsumerd error unix socket */
}
/* Create the kconsumerd error unix socket */