mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 09:22:32 +00:00
lib: Convert libfrr.c to use new error code system
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
a2b0f8b803
commit
0bff8eea70
@ -517,13 +517,15 @@ static void frr_mkdir(const char *path, bool strip)
|
|||||||
if (errno == EEXIST)
|
if (errno == EEXIST)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
zlog_warn("failed to mkdir \"%s\": %s", path, strerror(errno));
|
flog_err(LIB_ERR_SYSTEM_CALL, "failed to mkdir \"%s\": %s",
|
||||||
|
path, strerror(errno));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
zprivs_get_ids(&ids);
|
zprivs_get_ids(&ids);
|
||||||
if (chown(path, ids.uid_normal, ids.gid_normal))
|
if (chown(path, ids.uid_normal, ids.gid_normal))
|
||||||
zlog_warn("failed to chown \"%s\": %s", path, strerror(errno));
|
flog_err(LIB_ERR_SYSTEM_CALL, "failed to chown \"%s\": %s",
|
||||||
|
path, strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct thread_master *master;
|
static struct thread_master *master;
|
||||||
|
Loading…
Reference in New Issue
Block a user