chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemadm: report GLib.Error only to stderr
[elogind.git]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index 083da2a545f8660ba4485f788f7a91549311aa0e..411efae93373a747d1318bb634d67864cb691f7e 100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-445,6
+445,8
@@
int audit_session_from_pid(pid_t pid, uint32_t *id);
bool display_is_local(const char *display);
int socket_from_display(const char *display, char **path);
bool display_is_local(const char *display);
int socket_from_display(const char *display, char **path);
+int get_user_creds(const char **username, uid_t *uid, gid_t *gid, const char **home);
+
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)