FreeBSD Bugzilla – Attachment 216750 Details for
Bug 248249
net/frr7: fix crash on config read
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
frr.diff (text/plain), 1.10 KB, created by
Kurt Jaeger
on 2020-07-24 18:56:16 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Kurt Jaeger
Created:
2020-07-24 18:56:16 UTC
Size:
1.10 KB
patch
obsolete
>Index: files/patch-lib_zlog.c >=================================================================== >--- files/patch-lib_zlog.c (nonexistent) >+++ files/patch-lib_zlog.c (working copy) >@@ -0,0 +1,16 @@ >+--- lib/zlog.c.orig 2020-06-30 11:08:57 UTC >++++ lib/zlog.c >+@@ -246,10 +246,10 @@ void zlog_tls_buffer_init(void) >+ fchown(mmfd, zlog_uid, zlog_gid); >+ >+ #ifdef HAVE_POSIX_FALLOCATE >+- if (posix_fallocate(mmfd, 0, TLS_LOG_BUF_SIZE) < 0) { >+-#else >+- if (ftruncate(mmfd, TLS_LOG_BUF_SIZE) < 0) { >++ if (posix_fallocate(mmfd, 0, TLS_LOG_BUF_SIZE) != 0) >++ /* note next statement is under above if() */ >+ #endif >++ if (ftruncate(mmfd, TLS_LOG_BUF_SIZE) < 0) { >+ zlog_err("failed to allocate thread log buffer \"%s\": %s", >+ mmpath, strerror(errno)); >+ goto out_anon_unlink; > >Property changes on: files/patch-lib_zlog.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248249
: 216750