bin: copy: fix return type of in_group()

Signed-off-by: Richard Alpe <richard@bit42.se>
This commit is contained in:
Richard Alpe
2025-03-11 13:31:55 +01:00
parent b8fc8b7f62
commit 095c9c331e
+1 -1
View File
@@ -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;