diff options
-rw-r--r-- | src/cow_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cow_utils.c b/src/cow_utils.c index e3a054b..8a746fe 100644 --- a/src/cow_utils.c +++ b/src/cow_utils.c @@ -91,7 +91,9 @@ int setfile(const char *path, struct stat *fs) * chown. If chown fails, lose setuid/setgid bits. */ if (chown(path, fs->st_uid, fs->st_gid)) { - if (errno != EPERM) { + /* EPERM if no permissions + * EINVAL if user was nobody or group was nogroup */ + if (errno != EPERM && errno != EINVAL) { USYSLOG(LOG_WARNING, "chown: %s", path); rval = 1; } |