From ab75315eecbefcf8a215a0a13500f0923fc962f9 Mon Sep 17 00:00:00 2001 From: pjd Date: Fri, 14 Dec 2012 15:04:39 +0000 Subject: [PATCH] The clear option (-c) is not compatible with keep (-k) and compress (-z) options. Obtained from: WHEEL Systems --- sbin/savecore/savecore.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index 2b9b6d8671a5..c11c15ec2643 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -681,6 +681,8 @@ main(int argc, char **argv) } if (checkfor && (clear || force || keep)) usage(); + if (clear && (compress || keep)) + usage(); argc -= optind; argv += optind; if (argc >= 1) {