nspawn: properly report all kinds of changed UID/GID when patching things for userns

We forgot to propagate one chmod().
This commit is contained in:
Lennart Poettering
2017-10-02 17:41:43 +02:00
parent fd68e0f58c
commit 64fbdc0f91
+2
View File
@@ -347,6 +347,8 @@ static int recurse_fd(int fd, bool donate_fd, const struct stat *st, uid_t shift
}
if (r < 0)
goto finish;
if (r > 0)
changed = true;
if (S_ISDIR(st->st_mode)) {
_cleanup_closedir_ DIR *d = NULL;