summaryrefslogtreecommitdiff
path: root/src/test/test-loop-block.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-04-28 17:23:29 +0200
committerLennart Poettering <lennart@poettering.net>2021-05-07 22:44:05 +0200
commit21b61b1dd26d4c4a4736aabac128037b67440e2a (patch)
tree87b1eaf878e3c4712fae8ddf6017b374a794b2d9 /src/test/test-loop-block.c
parent35fd355842f1764556da1988f4cca4a0d2cc6264 (diff)
downloadsystemd-21b61b1dd26d4c4a4736aabac128037b67440e2a.tar.gz
dissect-image: add support for optionally mounting images with idmapping on
Diffstat (limited to 'src/test/test-loop-block.c')
-rw-r--r--src/test/test-loop-block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-loop-block.c b/src/test/test-loop-block.c
index ba44b5f3f9..57f3279b67 100644
--- a/src/test/test-loop-block.c
+++ b/src/test/test-loop-block.c
@@ -77,7 +77,7 @@ static void* thread_func(void *ptr) {
assert_se(dissected->partitions[PARTITION_HOME].found);
assert_se(dissected->partitions[PARTITION_HOME].node);
- r = dissected_image_mount(dissected, mounted, UID_INVALID, DISSECT_IMAGE_READ_ONLY);
+ r = dissected_image_mount(dissected, mounted, UID_INVALID, UID_INVALID, DISSECT_IMAGE_READ_ONLY);
log_notice_errno(r, "Mounted %s → %s: %m", loop->node, mounted);
assert_se(r >= 0);
@@ -217,7 +217,7 @@ int main(int argc, char *argv[]) {
assert_se(mkdtemp_malloc(NULL, &mounted) >= 0);
/* This first (writable) mount will initialize the mount point dirs, so that the subsequent read-only ones can work */
- assert_se(dissected_image_mount(dissected, mounted, UID_INVALID, 0) >= 0);
+ assert_se(dissected_image_mount(dissected, mounted, UID_INVALID, UID_INVALID, 0) >= 0);
assert_se(umount_recursive(mounted, 0) >= 0);
loop = loop_device_unref(loop);