Module Name:    src
Committed By:   riastradh
Date:           Mon Aug 28 23:57:08 UTC 2023

Modified Files:
        src/usr.sbin/postinstall: postinstall.in

Log Message:
postinstall(8): Fail if `certctl rehash' fails.

Not using `set -e' here, evidently (maybe we should), so the separate
return 0 suppressed the error.


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/usr.sbin/postinstall/postinstall.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/postinstall/postinstall.in
diff -u src/usr.sbin/postinstall/postinstall.in:1.53 src/usr.sbin/postinstall/postinstall.in:1.54
--- src/usr.sbin/postinstall/postinstall.in:1.53	Sat Aug 26 05:59:00 2023
+++ src/usr.sbin/postinstall/postinstall.in	Mon Aug 28 23:57:08 2023
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall.in,v 1.53 2023/08/26 05:59:00 riastradh Exp $
+# $NetBSD: postinstall.in,v 1.54 2023/08/28 23:57:08 riastradh Exp $
 #
 # Copyright (c) 2002-2022 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1684,7 +1684,6 @@ do_opensslcerts()
 			;;
 		esac
 		certctl rehash
-		return 0
 		;;
 	*)	err 3 "USAGE: do_opensslcerts fix|check"
 		;;

Reply via email to