projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd68e0f
)
nspawn: properly report all kinds of changed UID/GID when patching things for userns
author
Lennart Poettering
<lennart@poettering.net>
Thu, 28 Sep 2017 11:01:33 +0000
(13:01 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 2 Oct 2017 15:41:43 +0000
(17:41 +0200)
We forgot to propagate one chmod().
src/nspawn/nspawn-patch-uid.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn-patch-uid.c
b/src/nspawn/nspawn-patch-uid.c
index 1a3f129db0c28bb75cd44afe5a68a71bc83919a7..f861db879a780cc72acbec7275086a078a21c5f8 100644
(file)
--- a/
src/nspawn/nspawn-patch-uid.c
+++ b/
src/nspawn/nspawn-patch-uid.c
@@
-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;