From: dongshengyuan <545258830@qq.com> Date: Fri, 17 Jul 2026 10:20:18 +0000 (+0800) Subject: lsipc: print numeric permissions for message queues X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d97ddf183deb24907aca3540b356795199173c0;p=thirdparty%2Futil-linux.git lsipc: print numeric permissions for message queues Change: Move scols_line_refer_data() outside the else branch. Apply this to System V and POSIX message queues. Before: --numeric-perms left PERMS empty for message queues. OWNER shifted into the PERMS field in normal output. Follow: 9d20ffda794208d26e6b3ed09fbc38d94d0b8fc6 c457ec945b4457418af6d5d80f4e6357b15cba9b --- diff --git a/sys-utils/lsipc.c b/sys-utils/lsipc.c index 10d690dc3..a555edf7c 100644 --- a/sys-utils/lsipc.c +++ b/sys-utils/lsipc.c @@ -914,8 +914,8 @@ static void do_msg(int id, struct lsipc_control *ctl, struct libscols_table *tb) else { arg = xmalloc(11); xstrmode(p->msg_perm.mode & 0777, arg); - rc = scols_line_refer_data(ln, n, arg); } + rc = scols_line_refer_data(ln, n, arg); break; case COL_CUID: rc = scols_line_sprintf(ln, n, "%u", p->msg_perm.cuid); @@ -1050,8 +1050,8 @@ static void do_posix_msg(const char *name, struct lsipc_control *ctl, else { arg = xmalloc(11); xstrmode(p->mode & 0777, arg); - rc = scols_line_refer_data(ln, n, arg); } + rc = scols_line_refer_data(ln, n, arg); break; case COL_CUID: rc = scols_line_sprintf(ln, n, "%u", p->cuid);