svn commit: r244217 - head/sbin/savecore
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri Dec 14 15:04:40 UTC 2012
Author: pjd
Date: Fri Dec 14 15:04:39 2012
New Revision: 244217
URL: http://svnweb.freebsd.org/changeset/base/244217
Log:
The clear option (-c) is not compatible with keep (-k) and compress (-z)
options.
Obtained from: WHEEL Systems
Modified:
head/sbin/savecore/savecore.c
Modified: head/sbin/savecore/savecore.c
==============================================================================
--- head/sbin/savecore/savecore.c Fri Dec 14 15:03:12 2012 (r244216)
+++ head/sbin/savecore/savecore.c Fri Dec 14 15:04:39 2012 (r244217)
@@ -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) {
More information about the svn-src-all
mailing list