Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix pkg-which glob
Michael Gmelin committed 11 years ago
commit e441a952562a2d94fbeb544ff9b0ee3ae486ca54
parent 5d74f50
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;
+
                        }
		}