Home
last modified time | relevance | path

Searched refs:mangled (Results 1 – 13 of 13) sorted by relevance

/systemd-251/src/basic/
Drecovery-key.c22 _cleanup_(erase_and_freep) char *mangled = NULL; in normalize_recovery_key()
34 mangled = new(char, RECOVERY_KEY_MODHEX_FORMATTED_LENGTH); in normalize_recovery_key()
35 if (!mangled) in normalize_recovery_key()
61 mangled[j++] = modhex_alphabet[a]; in normalize_recovery_key()
62 mangled[j++] = modhex_alphabet[b]; in normalize_recovery_key()
65 mangled[j++] = '-'; in normalize_recovery_key()
68 mangled[RECOVERY_KEY_MODHEX_FORMATTED_LENGTH-1] = 0; in normalize_recovery_key()
70 *ret = TAKE_PTR(mangled); in normalize_recovery_key()
Dunit-name.c671 bool mangled = false; in do_escape_mangle() local
686 mangled = true; in do_escape_mangle()
689 mangled = true; in do_escape_mangle()
694 return mangled; in do_escape_mangle()
706 bool mangled, suggest_escape = true; in unit_name_mangle_with_suffix() local
753 mangled = do_escape_mangle(name, flags & UNIT_NAME_MANGLE_GLOB, s); in unit_name_mangle_with_suffix()
754 if (mangled) in unit_name_mangle_with_suffix()
Duser-util.c864 char *mangled; in mangle_gecos() local
870 mangled = strdup(d); in mangle_gecos()
871 if (!mangled) in mangle_gecos()
874 for (char *i = mangled; *i; i++) { in mangle_gecos()
891 return mangled; in mangle_gecos()
/systemd-251/src/systemctl/
Dsystemctl-util.c236 _cleanup_strv_free_ char **mangled = NULL, **globs = NULL; in expand_unit_names() local
253 r = strv_consume(&mangled, t); in expand_unit_names()
269 n = strv_length(mangled); in expand_unit_names()
272 if (!GREEDY_REALLOC(mangled, n+2)) in expand_unit_names()
275 mangled[n] = strdup(unit_infos[i].id); in expand_unit_names()
276 if (!mangled[n]) in expand_unit_names()
279 mangled[++n] = NULL; in expand_unit_names()
286 *ret = TAKE_PTR(mangled); in expand_unit_names()
/systemd-251/src/shared/
Duser-record-nss.c74 _cleanup_free_ char *mangled = NULL; in nss_passwd_to_user_record() local
76 mangled = mangle_gecos(pwd->pw_gecos); in nss_passwd_to_user_record()
77 if (!mangled) in nss_passwd_to_user_record()
80 free_and_replace(hr->real_name, mangled); in nss_passwd_to_user_record()
Dformat-table.c2665 _cleanup_free_ char *mangled = NULL; in table_to_json() local
2687 mangled = string_to_json_field_name(formatted); in table_to_json()
2688 if (!mangled) { in table_to_json()
2692 n = mangled; in table_to_json()
/systemd-251/src/analyze/
Danalyze.c475 _cleanup_free_ char *mangled = NULL; in parse_argv() local
477 r = unit_name_mangle(optarg, UNIT_NAME_MANGLE_WARN, &mangled); in parse_argv()
481 free_and_replace(arg_unit, mangled); in parse_argv()
Danalyze-security.c2865 _cleanup_free_ char *mangled = NULL, *instance = NULL; in analyze_security() local
2873 r = unit_name_mangle(*i, 0, &mangled); in analyze_security()
2877 if (!endswith(mangled, ".service")) in analyze_security()
2882 if (unit_name_is_valid(mangled, UNIT_NAME_TEMPLATE)) { in analyze_security()
2883 r = unit_name_replace_instance(mangled, "test-instance", &instance); in analyze_security()
2889 name = mangled; in analyze_security()
/systemd-251/test/fuzz/
Dmeson.build34 # Also, backslashes get mangled, so skip test. See
/systemd-251/src/home/
Duser-record-util.c598 _cleanup_(erase_and_freep) char *mangled = NULL; in user_record_test_recovery_key()
606 r = normalize_recovery_key(*i, &mangled); in user_record_test_recovery_key()
612 p = mangled; in user_record_test_recovery_key()
Dhomework.c1143 _cleanup_(erase_and_freep) char *mangled = NULL; in user_record_compile_effective_passwords()
1148 r = normalize_recovery_key(*j, &mangled); in user_record_compile_effective_passwords()
1154 p = mangled; in user_record_compile_effective_passwords()
/systemd-251/src/nspawn/
Dnspawn.c1002 _cleanup_free_ char *mangled = NULL; in parse_argv() local
1004 … r = unit_name_mangle_with_suffix(optarg, NULL, UNIT_NAME_MANGLE_WARN, ".slice", &mangled); in parse_argv()
1008 free_and_replace(arg_slice, mangled); in parse_argv()
/systemd-251/
DNEWS5597 tree is automatically mangled and moved one level up.