8 Star 0 Fork 33

src-anolis-os/util-linux

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
0100-logger-initialize-socket-credentials-control-union.patch 993 Bytes
Copy Edit Raw Blame History
renbo02 authored 2024-07-18 15:17 +08:00 . update to util-linux-2.32.1-46.src.rpm
From ca39305530067a55fb151167ba2a085a167c780e Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Mon, 26 Jun 2023 11:56:23 +0200
Subject: logger: initialize socket credentials control union
Addresses: https://issues.redhat.com/browse/RHEL-18451
Upstream: http://github.com/util-linux/util-linux/commit/3a4d70419c97f64f60c0eda4720e64d17b3b071
Addresses: https://github.com/util-linux/util-linux/issues/2336
Signed-off-by: Karel Zak <kzak@redhat.com>
---
misc-utils/logger.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/misc-utils/logger.c b/misc-utils/logger.c
index c20ef05f1..3f7b05a44 100644
--- a/misc-utils/logger.c
+++ b/misc-utils/logger.c
@@ -457,7 +457,7 @@ static void write_output(struct logger_ctl *ctl, const char *const msg)
union {
struct cmsghdr cmh;
char control[CMSG_SPACE(sizeof(struct ucred))];
- } cbuf;
+ } cbuf = { .control = { 0 } };
#endif
/* 4) add extra \n to make sure message is terminated */
--
2.43.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-os/util-linux.git
git@gitee.com:src-anolis-os/util-linux.git
src-anolis-os
util-linux
util-linux
a8

Search