diff options
author | David Lamparter <equinox@diac24.net> | 2020-04-20 23:17:17 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2020-04-20 23:17:17 +0200 |
commit | 41051697a904d772f45c1479fb80b933aecaa864 (patch) | |
tree | fbada8211ecc14834ee66a741212d43414fe78ca /lib | |
parent | Merge pull request #6261 from ton31337/fix/allow_nhlen_32 (diff) | |
download | frr-41051697a904d772f45c1479fb80b933aecaa864.tar.xz frr-41051697a904d772f45c1479fb80b933aecaa864.zip |
lib/zlog: fix coverity warning
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zlog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/zlog.c b/lib/zlog.c index 4cab23699..45726755f 100644 --- a/lib/zlog.c +++ b/lib/zlog.c @@ -238,13 +238,12 @@ void zlog_tls_buffer_init(void) mmfd = openat(zlog_tmpdirfd, mmpath, O_RDWR | O_CREAT | O_EXCL | O_CLOEXEC, 0600); - fchown(mmfd, zlog_uid, zlog_gid); - if (mmfd < 0) { zlog_err("failed to open thread log buffer \"%s\": %s", mmpath, strerror(errno)); goto out_anon; } + fchown(mmfd, zlog_uid, zlog_gid); #ifdef HAVE_POSIX_FALLOCATE if (posix_fallocate(mmfd, 0, TLS_LOG_BUF_SIZE) < 0) { |