]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/nspawn/nspawn-patch-uid.c
nspawn: fix uid patching logic (#3599)
authorLennart Poettering <lennart@poettering.net>
Sat, 25 Jun 2016 04:04:43 +0000 (06:04 +0200)
committerEvgeny Vereshchagin <evvers@ya.ru>
Sat, 25 Jun 2016 04:04:43 +0000 (07:04 +0300)
commit0c6aeb4609f619328b9dcf8d8d815bd06e412ac5
treea7564e96a84b451a059f761cf2aa64180d3ef0c8
parentd946fb596f7ed010dce6685a499e0aebef00e451
nspawn: fix uid patching logic (#3599)

An incorrectly set if/else chain caused aus to apply the access mode of a
symlink to the directory it is located in. Yuck.

Fixes: #3547
src/nspawn/nspawn-patch-uid.c