summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-20 15:31:00 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-09-06 22:50:58 +0200
commit0bff8eea70f2ed13013d5af9a8e21117eca24deb (patch)
treebf52dd9534caa88b2516ef2119892bf25ed4148e /lib
parentlib: Convert stream.c to use new error code subsystem (diff)
downloadfrr-0bff8eea70f2ed13013d5af9a8e21117eca24deb.tar.xz
frr-0bff8eea70f2ed13013d5af9a8e21117eca24deb.zip
lib: Convert libfrr.c to use new error code system
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libfrr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c
index 821c57f37..18e263656 100644
--- a/lib/libfrr.c
+++ b/lib/libfrr.c
@@ -517,13 +517,15 @@ static void frr_mkdir(const char *path, bool strip)
if (errno == EEXIST)
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;
}
zprivs_get_ids(&ids);
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;