From 095c9c331e4c048b5ebe375b0265c613b9b3c379 Mon Sep 17 00:00:00 2001 From: Richard Alpe Date: Tue, 11 Mar 2025 13:31:55 +0100 Subject: [PATCH] bin: copy: fix return type of in_group() Signed-off-by: Richard Alpe --- src/bin/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/copy.c b/src/bin/copy.c index 12e49e60..f782f1e7 100644 --- a/src/bin/copy.c +++ b/src/bin/copy.c @@ -92,7 +92,7 @@ static char *getuser(void) * should result in the file being owned by $LOGNAME:wheel with * 0660 perms for other users in same group. */ -static gid_t in_group(const char *user, const char *fn, gid_t *gid) +static int in_group(const char *user, const char *fn, gid_t *gid) { char path[PATH_MAX]; const struct passwd *pw;