Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Yet another error that should be 2
Baptiste Daroussin committed 9 years ago
commit 3c18003181bfdd4c016399de66c9006c99985be7
parent 5f94f2b
1 file changed +1 -1
modified libpkg/fetch.c
@@ -545,7 +545,7 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest,
			if (geteuid() == 0) {
				nobody = getpwnam("nobody");
				if (nobody == NULL)
-
					err(EXIT_FAILURE, "Unable to drop priviledges");
+
					err(2, "Unable to drop priviledges");
				setgroups(1, &nobody->pw_gid);
				setegid(nobody->pw_gid);
				setgid(nobody->pw_gid);