tree-wide: replace strjoin() with path_join()
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include "main-func.h"
|
||||
#include "mkdir.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "proc-cmdline.h"
|
||||
#include "specifier.h"
|
||||
#include "string-util.h"
|
||||
@@ -188,7 +189,7 @@ static int determine_devices(void) {
|
||||
if (!arg_data_what) {
|
||||
memcpy(&root_uuid, m, sizeof(root_uuid));
|
||||
|
||||
arg_data_what = strjoin("/dev/disk/by-partuuid/", id128_to_uuid_string(root_uuid, ids));
|
||||
arg_data_what = path_join("/dev/disk/by-partuuid", id128_to_uuid_string(root_uuid, ids));
|
||||
if (!arg_data_what)
|
||||
return log_oom();
|
||||
}
|
||||
@@ -196,7 +197,7 @@ static int determine_devices(void) {
|
||||
if (!arg_hash_what) {
|
||||
memcpy(&verity_uuid, (uint8_t*) m + l - sizeof(verity_uuid), sizeof(verity_uuid));
|
||||
|
||||
arg_hash_what = strjoin("/dev/disk/by-partuuid/", id128_to_uuid_string(verity_uuid, ids));
|
||||
arg_hash_what = path_join("/dev/disk/by-partuuid", id128_to_uuid_string(verity_uuid, ids));
|
||||
if (!arg_hash_what)
|
||||
return log_oom();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user