Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Improve chroot error messages
Brad Davis committed 10 years ago
commit 09b8e2c41bd76a4772dc545e7da7534dce368da2
parent ccdde41
1 file changed +5 -3
modified src/main.c
@@ -699,9 +699,11 @@ main(int argc, char **argv)
		    "-j, -c and/or -r cannot be used at the same time!\n");
	}

-
	if (chroot_path != NULL)
-
		if (chroot(chroot_path) == -1)
-
			errx(EX_SOFTWARE, "chroot failed!");
+
	if (chroot_path != NULL) {
+
		if (chroot(chroot_path) == -1) {
+
			err(EX_SOFTWARE, "chroot failed");
+
		}
+
	}

#ifdef HAVE_LIBJAIL
	if (jail_str != NULL) {