mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-07 06:03:51 +00:00
util: make lookup_uid() global
This is a useful helper, make it global. It will be required for libsystemd-terminal, at minimum.
This commit is contained in:
+1
-1
@@ -2604,7 +2604,7 @@ bool hostname_is_set(void) {
|
||||
return !isempty(u.nodename) && !streq(u.nodename, "(none)");
|
||||
}
|
||||
|
||||
static char *lookup_uid(uid_t uid) {
|
||||
char *lookup_uid(uid_t uid) {
|
||||
long bufsize;
|
||||
char *name;
|
||||
_cleanup_free_ char *buf = NULL;
|
||||
|
||||
@@ -432,6 +432,7 @@ int sigprocmask_many(int how, ...);
|
||||
|
||||
bool hostname_is_set(void);
|
||||
|
||||
char* lookup_uid(uid_t uid);
|
||||
char* gethostname_malloc(void);
|
||||
char* getlogname_malloc(void);
|
||||
char* getusername_malloc(void);
|
||||
|
||||
Reference in New Issue
Block a user