mirror of
https://github.com/systemd/systemd.git
synced 2025-02-13 01:57:42 +03:00
cryptsetup: use strjoin() for concatenating strings
This commit is contained in:
parent
c7faa23235
commit
090685b5a1
@ -353,7 +353,8 @@ static char *disk_mount_point(const char *label) {
|
||||
|
||||
/* Yeah, we don't support native systemd unit files here for now */
|
||||
|
||||
if (asprintf(&device, "/dev/mapper/%s", label) < 0)
|
||||
device = strjoin("/dev/mapper/", label);
|
||||
if (!device)
|
||||
return NULL;
|
||||
|
||||
f = setmntent(fstab_path(), "re");
|
||||
|
Loading…
x
Reference in New Issue
Block a user