]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ipcs: fix typo
authorKarel Zak <kzak@redhat.com>
Mon, 21 Feb 2011 18:06:54 +0000 (19:06 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 21 Feb 2011 18:06:54 +0000 (19:06 +0100)
Reported-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/ipcs.c

index afcccbcaa45e62aab4dc0c67da143f67c3a3305e..d7c8ee8f6406176d7314389719e5332e618ef3fe 100644 (file)
@@ -204,7 +204,7 @@ main (int argc, char **argv) {
                        print_sem (id);
                if (msg)
                        print_msg (id);
-               if (!msg && !sem && !msg )
+               if (!shm && !sem && !msg )
                        usage (EXIT_FAILURE);
        } else {
                if ( !shm && !msg && !sem)