summaryrefslogtreecommitdiff
path: root/src/shared/loop-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-10-20 09:57:16 +0200
committerLennart Poettering <lennart@poettering.net>2021-10-20 09:57:16 +0200
commit0193b93eb5d4c9bb760f0e2727b4e698c392a47f (patch)
tree6e915510b97d4d6b7a923f662c9f417a5f26f7c0 /src/shared/loop-util.c
parentaa4d3aa3ef05f64729cce1dd87ce9f7a237ede1a (diff)
downloadsystemd-0193b93eb5d4c9bb760f0e2727b4e698c392a47f.tar.gz
loop-util: call loop_device_make_internal() at the right place
The whole reason loop_device_make_internal() exists (as opposed to just loop_device_make()) is to avoid mangling the loop flags value/call getenv twice. Hence let's actually call it when we already mangled the flags value.
Diffstat (limited to 'src/shared/loop-util.c')
-rw-r--r--src/shared/loop-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/loop-util.c b/src/shared/loop-util.c
index f2f4ab481d..2da101b748 100644
--- a/src/shared/loop-util.c
+++ b/src/shared/loop-util.c
@@ -695,7 +695,7 @@ int loop_device_make_by_path(
direct ? "enabled" : "disabled",
direct != (direct_flags != 0) ? " (O_DIRECT was requested but not supported)" : "");
- return loop_device_make(fd, open_flags, 0, 0, loop_flags, ret);
+ return loop_device_make_internal(fd, open_flags, 0, 0, loop_flags, ret);
}
LoopDevice* loop_device_unref(LoopDevice *d) {