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) {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to