mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
execute: simplify 'load_creds_args' struct a bit
Given we only need a single field off the ExecLoadCredential structure we don't have to link it as a whole, but just copy that one bit over directly, simplifying the struct a bit.
This commit is contained in:
parent
1134838615
commit
461345a164
@ -2701,7 +2701,7 @@ struct load_cred_args {
|
||||
Set *seen_creds;
|
||||
const ExecContext *context;
|
||||
const ExecParameters *params;
|
||||
ExecLoadCredential *parent_load_credential;
|
||||
bool encrypted;
|
||||
const char *unit;
|
||||
int dfd;
|
||||
uid_t uid;
|
||||
@ -2749,7 +2749,7 @@ static int load_cred_recurse_dir_cb(
|
||||
args->params,
|
||||
sub_id,
|
||||
de->d_name,
|
||||
args->parent_load_credential->encrypted,
|
||||
args->encrypted,
|
||||
args->unit,
|
||||
dir_fd,
|
||||
args->dfd,
|
||||
@ -2837,7 +2837,7 @@ static int acquire_credentials(
|
||||
.seen_creds = seen_creds,
|
||||
.context = context,
|
||||
.params = params,
|
||||
.parent_load_credential = lc,
|
||||
.encrypted = lc->encrypted,
|
||||
.unit = unit,
|
||||
.dfd = dfd,
|
||||
.uid = uid,
|
||||
|
Loading…
x
Reference in New Issue
Block a user