1 Star 0 Fork 98

Mingtai/systemd_1

forked from src-openEuler/systemd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-user-record-fix-display-of-access-mode.patch 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
From 9e318d9ff288b2b12b21a534d0cab3b4e153b462 Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@poettering.net>
Date: Fri, 5 Nov 2021 16:36:32 +0100
Subject: [PATCH] user-record: fix display of access mode
(cherry picked from commit 7cdd5c0d4c2213b791d8d22e7dd466a39e9c5db0)
Conflict:NA
Reference:https://github.com/systemd/systemd/commit/9e318d9ff288b2b12b21a534d0cab3b4e153b462
---
src/shared/user-record-show.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/shared/user-record-show.c b/src/shared/user-record-show.c
index 29790282b4..54ff949ff5 100644
--- a/src/shared/user-record-show.c
+++ b/src/shared/user-record-show.c
@@ -280,7 +280,7 @@ void user_record_show(UserRecord *hr, bool show_full_group_info) {
printf(" IO Weight: %" PRIu64 "\n", hr->io_weight);
if (hr->access_mode != MODE_INVALID)
- printf(" Access Mode: 0%03oo\n", user_record_access_mode(hr));
+ printf(" Access Mode: 0%03o\n", user_record_access_mode(hr));
if (storage == USER_LUKS) {
printf("LUKS Discard: online=%s offline=%s\n", yes_no(user_record_luks_discard(hr)), yes_no(user_record_luks_offline_discard(hr)));
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangmingtaip/systemd_1.git
git@gitee.com:yangmingtaip/systemd_1.git
yangmingtaip
systemd_1
systemd_1
master

搜索帮助