Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do not print an error is the trigger directory is non existing
Baptiste Daroussin committed 5 years ago
commit a02405ef23863f4bf93d6a668dc86ccba9ea63ff
parent d46c9f6
1 file changed +2 -1
modified libpkg/triggers.c
@@ -204,7 +204,8 @@ triggers_load(bool cleanup_only)

	dfd = openat(ctx.rootfd, RELATIVE_PATH(ctx.triggers_path), O_DIRECTORY);
	if (dfd == -1) {
-
		pkg_emit_error("Unable to open the trigger directory");
+
		if (errno != ENOENT)
+
			pkg_emit_error("Unable to open the trigger directory");
		return (NULL);
	}
	d = fdopendir(dfd);