summaryrefslogtreecommitdiffstats
path: root/src/home/homed-home.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-02-22 17:37:39 +0100
committerLennart Poettering <lennart@poettering.net>2021-02-22 17:38:57 +0100
commit930aa88f0448c90595a57a7b8b0307b14cdb011a (patch)
treed261b4565b06b0802ce49ccc68f7638aae2cd698 /src/home/homed-home.c
parentfuzz-systemctl-parse-argv: add "telinit" to the argv[0] list (diff)
downloadsystemd-930aa88f0448c90595a57a7b8b0307b14cdb011a.tar.xz
systemd-930aa88f0448c90595a57a7b8b0307b14cdb011a.zip
tree-wide: use sd_device_new_from_stat_rdev() whereever appropriate
Diffstat (limited to 'src/home/homed-home.c')
-rw-r--r--src/home/homed-home.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homed-home.c b/src/home/homed-home.c
index 2ea0f7c81d..f1db828ed0 100644
--- a/src/home/homed-home.c
+++ b/src/home/homed-home.c
@@ -2711,7 +2711,7 @@ static int home_get_image_path_seat(Home *h, char **ret) {
if (!S_ISBLK(st.st_mode))
return -ENOTBLK;
- r = sd_device_new_from_devnum(&d, 'b', st.st_rdev);
+ r = sd_device_new_from_stat_rdev(&d, &st);
if (r < 0)
return r;