Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Do not fail if no configuration file is there
Baptiste Daroussin committed 14 years ago
commit a0ca45f8d5ee3212a6903dbdc78192c1457b2747
parent c5b82c3acba38d6c40a027e0961083de6e63b12b
1 file changed +2 -2
modified libpkg/pkg_config.c
@@ -260,8 +260,8 @@ pkg_init(const char *path)
		path = "/etc/pkg.conf";

	if ((fp = fopen(path, "r")) == NULL) {
-
		pkg_emit_errno("fopen", path);
-
		return (EPKG_FATAL);
+
		/* no configuration present */
+
		return (EPKG_OK);
	}

	yaml_parser_initialize(&parser);