Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Silence -Wstring-plus-int warning
Baptiste Daroussin committed 6 years ago
commit 42c700bb3d172c230ab19faa351eb35fedc155d2
parent 12471e8e35ca8783e4906765531fd4a57d2c4c9e
1 file changed +1 -1
modified libpkg/pkg_config.c
@@ -995,7 +995,7 @@ pkg_ini(const char *path, const char *reposdir, pkg_init_flags flags)
	}

	if (path == NULL)
-
		conffd = openat(ctx.rootfd, PREFIX"/etc/pkg.conf" + 1, 0);
+
		conffd = openat(ctx.rootfd, &PREFIX"/etc/pkg.conf"[1], 0);
	else
		conffd = open(path, O_RDONLY);
	if (conffd == -1 && errno != ENOENT) {