Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix pkg-which glob
Michael Gmelin committed 11 years ago
commit e441a952562a2d94fbeb544ff9b0ee3ae486ca54
parent 5d74f5067e88984674e03eb9a25e6b91209b3d48
1 file changed +2 -1
modified src/which.c
@@ -161,9 +161,10 @@ exec_which(int argc, char **argv)
		if (!glob && !search)
			absolutepath(argv[0], pathabs, sizeof(pathabs));
		else if (!search) {
-
			if (strlcpy(pathabs, argv[0], sizeof(pathabs)) >= sizeof(pathabs))
+
			if (strlcpy(pathabs, argv[0], sizeof(pathabs)) >= sizeof(pathabs)) {
				retcode = EX_USAGE;
				goto cleanup;
+
                        }
		}