summaryrefslogtreecommitdiff
path: root/which.c
diff options
context:
space:
mode:
authorToby Goodwin <toby@paganbooks.eu>2018-04-28 08:21:19 +0100
committerToby Goodwin <toby@paganbooks.eu>2018-04-28 08:21:19 +0100
commit6fe8c0e92443ce3898fa8c3ebd73f6976fe98eec (patch)
tree453b2ee53f0d12caa4966dcb0fc7ac7770c49f06 /which.c
parentcb99a1b11a2f0d39cd92a27351a4920422bcd7a1 (diff)
check access of external commands when completing
Diffstat (limited to 'which.c')
-rw-r--r--which.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/which.c b/which.c
index 8ef0e39..731a6ab 100644
--- a/which.c
+++ b/which.c
@@ -47,7 +47,7 @@ static int ingidset(gid_t g) {
Returns a bool instead of this -1 nonsense.
*/
-static bool rc_access(char *path, bool verbose) {
+bool rc_access(char *path, bool verbose) {
struct stat st;
int mask;
if (stat(path, &st) != 0) {