Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix ENOENT evaluation after fopen() returns NULL.
Glen Barber committed 13 years ago
commit 2ff9e8ba8e3422c62dd44a715dd66cedb8911c85
parent 178c807
1 file changed +1 -1
modified libpkg/pkg_ports.c
@@ -688,7 +688,7 @@ external_keyword(struct plist *plist, char *keyword, char *line)
	}

	if ((fp = fopen(keyfile_path, "r")) == NULL) {
-
		if (errno != ENOENT)
+
		if (errno == ENOENT)
			pkg_emit_errno("Unable to open keyword definition",
			    keyfile_path);