7 Star 1 Fork 13

src-openEuler/nfs4-acl-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0003-acl_nfs4_get_who-removed-an-always-false-evaluate-wa.patch 799 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 09668147a05b45ba0e1134b6ddd2be28cadfbc11 Mon Sep 17 00:00:00 2001
From: Steve Dickson <[email protected]>
Date: Thu, 16 Jun 2022 16:24:19 -0400
Subject: [PATCH] acl_nfs4_get_who: removed an always false evaluate warning
Signed-off-by: Steve Dickson <[email protected]>
---
libnfs4acl/acl_nfs4_get_who.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libnfs4acl/acl_nfs4_get_who.c b/libnfs4acl/acl_nfs4_get_who.c
index 695db2e..3e2fd7c 100644
--- a/libnfs4acl/acl_nfs4_get_who.c
+++ b/libnfs4acl/acl_nfs4_get_who.c
@@ -49,7 +49,7 @@ int acl_nfs4_get_who(struct nfs4_ace* ace, int* type, char** who)
char* iwho = NULL;
int wholen;
- if (ace == NULL || ace->who == NULL)
+ if (ace == NULL)
goto inval_failed;
itype = acl_nfs4_get_whotype(ace->who);
--
2.39.2
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/nfs4-acl-tools.git
[email protected]:src-openeuler/nfs4-acl-tools.git
src-openeuler
nfs4-acl-tools
nfs4-acl-tools
master

搜索帮助