|
|
64664a |
From a04fe4b347e563d7ff8d116fde6c6f26646ffadd Mon Sep 17 00:00:00 2001
|
|
|
64664a |
From: Hushan Jia <hushan.jia@gmail.com>
|
|
|
64664a |
Date: Sun, 21 Feb 2016 21:10:24 -0800
|
|
|
64664a |
Subject: [PATCH 102/116] ipcs: show gid instead of uid
|
|
|
64664a |
|
|
|
64664a |
ipcs -i incorrectly used uid where it should be gid
|
|
|
64664a |
|
|
|
64664a |
Upstream: https://github.com/karelzak/util-linux/commit/e0bbe3d6ffed13ca5e4af450b8de775ddc5b30f3
|
|
|
64664a |
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1358095
|
|
|
64664a |
Signed-off-by: Hushan Jia <hushan.jia@gmail.com>
|
|
|
64664a |
---
|
|
|
64664a |
sys-utils/ipcs.c | 6 +++---
|
|
|
64664a |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
64664a |
|
|
|
64664a |
diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c
|
|
|
64664a |
index 1843cd5..1db7fd0 100644
|
|
|
64664a |
--- a/sys-utils/ipcs.c
|
|
|
64664a |
+++ b/sys-utils/ipcs.c
|
|
|
64664a |
@@ -564,7 +564,7 @@ static void print_shm(int shmid, int unit)
|
|
|
64664a |
|
|
|
64664a |
printf(_("\nShared memory Segment shmid=%d\n"), shmid);
|
|
|
64664a |
printf(_("uid=%u\tgid=%u\tcuid=%u\tcgid=%u\n"),
|
|
|
64664a |
- shmdata->shm_perm.uid, shmdata->shm_perm.uid,
|
|
|
64664a |
+ shmdata->shm_perm.uid, shmdata->shm_perm.gid,
|
|
|
64664a |
shmdata->shm_perm.cuid, shmdata->shm_perm.cgid);
|
|
|
64664a |
printf(_("mode=%#o\taccess_perms=%#o\n"), shmdata->shm_perm.mode,
|
|
|
64664a |
shmdata->shm_perm.mode & 0777);
|
|
|
64664a |
@@ -594,7 +594,7 @@ void print_msg(int msgid, int unit)
|
|
|
64664a |
|
|
|
64664a |
printf(_("\nMessage Queue msqid=%d\n"), msgid);
|
|
|
64664a |
printf(_("uid=%u\tgid=%u\tcuid=%u\tcgid=%u\tmode=%#o\n"),
|
|
|
64664a |
- msgdata->msg_perm.uid, msgdata->msg_perm.uid,
|
|
|
64664a |
+ msgdata->msg_perm.uid, msgdata->msg_perm.gid,
|
|
|
64664a |
msgdata->msg_perm.cuid, msgdata->msg_perm.cgid,
|
|
|
64664a |
msgdata->msg_perm.mode);
|
|
|
64664a |
ipc_print_size(unit, unit == IPC_UNIT_HUMAN ? _("csize=") : _("cbytes="),
|
|
|
64664a |
@@ -627,7 +627,7 @@ static void print_sem(int semid)
|
|
|
64664a |
|
|
|
64664a |
printf(_("\nSemaphore Array semid=%d\n"), semid);
|
|
|
64664a |
printf(_("uid=%u\t gid=%u\t cuid=%u\t cgid=%u\n"),
|
|
|
64664a |
- semdata->sem_perm.uid, semdata->sem_perm.uid,
|
|
|
64664a |
+ semdata->sem_perm.uid, semdata->sem_perm.gid,
|
|
|
64664a |
semdata->sem_perm.cuid, semdata->sem_perm.cgid);
|
|
|
64664a |
printf(_("mode=%#o, access_perms=%#o\n"),
|
|
|
64664a |
semdata->sem_perm.mode, semdata->sem_perm.mode & 0777);
|
|
|
64664a |
--
|
|
|
64664a |
2.9.3
|
|
|
64664a |
|