return uid_to_name(uid);
}
-char *getusername_malloc(void) {
+char* getusername_malloc(void) {
const char *e;
e = secure_getenv("USER");
return "/bin/sh";
}
-const char *default_root_shell(const char *root) {
+const char* default_root_shell(const char *root) {
_cleanup_close_ int rfd = -EBADF;
rfd = open(empty_to_root(root), O_CLOEXEC | O_DIRECTORY | O_PATH);
return true;
}
-char *mangle_gecos(const char *d) {
+char* mangle_gecos(const char *d) {
char *mangled;
/* Makes sure the provided string becomes valid as a GEGOS field, by dropping bad chars. glibc's
return uid == getuid();
}
-const char *get_home_root(void) {
+const char* get_home_root(void) {
const char *e;
/* For debug purposes allow overriding where we look for home dirs */
bool valid_user_group_name(const char *u, ValidUserFlags flags);
bool valid_gecos(const char *d);
-char *mangle_gecos(const char *d);
+char* mangle_gecos(const char *d);
bool valid_home(const char *p);
static inline bool valid_shell(const char *p) {
int is_this_me(const char *username);
-const char *get_home_root(void);
+const char* get_home_root(void);
static inline bool hashed_password_is_locked_or_invalid(const char *password) {
return password && password[0] != '$';