diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-02-22 17:37:39 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-02-22 17:38:57 +0100 |
commit | 930aa88f0448c90595a57a7b8b0307b14cdb011a (patch) | |
tree | d261b4565b06b0802ce49ccc68f7638aae2cd698 /src/home/homed-home.c | |
parent | fuzz-systemctl-parse-argv: add "telinit" to the argv[0] list (diff) | |
download | systemd-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.c | 2 |
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; |