env-file: add helper for printing a properly escaped env var file assignment

This commit is contained in:
Lennart Poettering
2025-05-21 17:33:40 +02:00
parent d9eadbbca0
commit e27333b2cc
2 changed files with 38 additions and 13 deletions
+2
View File
@@ -22,3 +22,5 @@ int merge_env_file(char ***env, FILE *f, const char *fname);
int write_env_file(int dir_fd, const char *fname, char **headers, char **l);
int write_vconsole_conf(int dir_fd, const char *fname, char **l);
void env_file_fputs_assignment(FILE *f, const char *k, const char *v);