user-util: add mangle_gecos() call for turning strings into fields suitable as GECOS fields

This commit is contained in:
Lennart Poettering
2020-08-07 17:36:11 +02:00
parent c1c28fe2f7
commit b10fd796f5
3 changed files with 52 additions and 0 deletions
+1
View File
@@ -105,6 +105,7 @@ typedef enum ValidUserFlags {
bool valid_user_group_name(const char *u, ValidUserFlags flags);
bool valid_gecos(const char *d);
char *mangle_gecos(const char *d);
bool valid_home(const char *p);
static inline bool valid_shell(const char *p) {