svn commit: r368287 - head/sbin/bectl

Gleb Smirnoff glebius at FreeBSD.org
Wed Dec 2 21:53:29 UTC 2020


Author: glebius
Date: Wed Dec  2 21:53:28 2020
New Revision: 368287
URL: https://svnweb.freebsd.org/changeset/base/368287

Log:
  Fix r368197: suppress error printing for the "check" command.
  
  Reviewed by:	kevans

Modified:
  head/sbin/bectl/bectl.c

Modified: head/sbin/bectl/bectl.c
==============================================================================
--- head/sbin/bectl/bectl.c	Wed Dec  2 21:44:41 2020	(r368286)
+++ head/sbin/bectl/bectl.c	Wed Dec  2 21:53:28 2020	(r368287)
@@ -585,8 +585,9 @@ main(int argc, char *argv[])
 	}
 
 	if ((be = libbe_init(root)) == NULL) {
-		fprintf(stderr, "libbe_init(\"%s\") failed.\n",
-		    root != NULL ? root : "");
+		if (!cmd->silent)
+			fprintf(stderr, "libbe_init(\"%s\") failed.\n",
+			    root != NULL ? root : "");
 		return (-1);
 	}
 


More information about the svn-src-head mailing list