From bff77f44afcdf43e69053dc2a3e4b45514810952 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 24 Apr 2017 09:31:31 -0400 Subject: fcopy - no checking for group in order to fix files such as /usr/bin/mutt_dotlock --- src/fcopy/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fcopy/main.c b/src/fcopy/main.c index b9d2c19a8..da5ade428 100644 --- a/src/fcopy/main.c +++ b/src/fcopy/main.c @@ -200,7 +200,8 @@ static char *check(const char *src) { goto errexit; // check uid - if (s.st_uid != getuid() || s.st_gid != getgid()) + // checking gid will fail for files with a larger group such as /usr/bin/mutt_dotlock + if (s.st_uid != getuid()/* || s.st_gid != getgid()*/) goto errexit; // dir, link, regular file -- cgit v1.2.3-54-g00ecf