diff options
author | Karel Zak | 2015-07-23 10:36:02 +0200 |
---|---|---|
committer | Karel Zak | 2015-07-23 10:36:02 +0200 |
commit | 8f405a5bed6c78080c6a54e389edcb11471d1794 (patch) | |
tree | 84defca4617fd022ac879cb6df7fb95487ac31bd /sys-utils/lsipc.c | |
parent | lsipc: remove --print0 and -colon-separate (diff) | |
download | kernel-qcow2-util-linux-8f405a5bed6c78080c6a54e389edcb11471d1794.tar.gz kernel-qcow2-util-linux-8f405a5bed6c78080c6a54e389edcb11471d1794.tar.xz kernel-qcow2-util-linux-8f405a5bed6c78080c6a54e389edcb11471d1794.zip |
lsipc: the default --global is mutually exclusive with -c --id and -t
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lsipc.c')
-rw-r--r-- | sys-utils/lsipc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys-utils/lsipc.c b/sys-utils/lsipc.c index 25dd0f3f2..8912c8da4 100644 --- a/sys-utils/lsipc.c +++ b/sys-utils/lsipc.c @@ -1257,9 +1257,11 @@ int main(int argc, char *argv[]) } /* default is global */ - if (msg + shm + sem == 0) + if (msg + shm + sem == 0) { msg = shm = sem = global = 1; - + if (show_time || show_creat || id) + errx(EXIT_FAILURE, _("the --global is mutually exclusive with --creator, --id and --time")); + } if (global) { add_column(columns, ncolumns++, COL_RESOURCE); add_column(columns, ncolumns++, COL_DESC); |