core: make exec_directory_add() extends existing symlinks

Follow-up for 211a3d87fb.

Previously, although ExecDirectoryItem.symlinks is strv, it always
contains at most one symlink.
This commit is contained in:
Yu Watanabe
2022-10-03 09:25:00 +09:00
parent 64ebc0da03
commit 564e5c9878
4 changed files with 33 additions and 31 deletions
+1 -1
View File
@@ -492,7 +492,7 @@ ExecLoadCredential *exec_load_credential_free(ExecLoadCredential *lc);
DEFINE_TRIVIAL_CLEANUP_FUNC(ExecLoadCredential*, exec_load_credential_free);
void exec_directory_done(ExecDirectory *d);
int exec_directory_add(ExecDirectoryItem **d, size_t *n, const char *path, char **symlinks);
int exec_directory_add(ExecDirectory *d, const char *path, const char *symlink);
extern const struct hash_ops exec_set_credential_hash_ops;
extern const struct hash_ops exec_load_credential_hash_ops;