1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-10 00:58:20 +03:00

blockdev: propagate one more unexpected error

This commit is contained in:
Lennart Poettering 2020-05-18 18:29:57 +02:00
parent 34d16bad2d
commit 6cba41ab0d

View File

@ -29,6 +29,8 @@ int block_get_whole_disk(dev_t d, dev_t *ret) {
*ret = d;
return 0;
}
if (errno != ENOENT)
return -errno;
/* If it is a partition find the originating device */
xsprintf_sys_block_path(p, "/partition", d);