]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ipcs: fix ipc_sem_get_limits()
authorKarel Zak <kzak@redhat.com>
Tue, 15 Sep 2015 07:50:08 +0000 (09:50 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 15 Sep 2015 07:50:08 +0000 (09:50 +0200)
Reported-by: https://github.com/AndrewIrcha
Addresses: https://github.com/karelzak/util-linux/commit/e5995acda2d3d55ba4d926741ddd789c9776f1e7#commitcomment-13200369
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/ipcutils.c

index 1e18b8a37c728856af10e35777ebd111356fee75..400f00cf66616869505f152205d1a34e8dc5c8be 100644 (file)
@@ -53,7 +53,7 @@ int ipc_sem_get_limits(struct ipc_limits *lim)
 
        }
 
-       if (rc == 4) {
+       if (rc != 4) {
                struct seminfo seminfo;
                union semun arg = { .array = (ushort *) &seminfo };