if (!uid_is_valid(uid))
return -ENXIO; /* we return ENXIO instead of EINVAL
* here, to make it easy to distuingish
- * invalid numeric uids invalid
+ * invalid numeric uids from invalid
* strings. */
if (ret)
return 0;
}
+#if 0 /// UNNEEDED by elogind
char* getlogname_malloc(void) {
uid_t uid;
struct stat st;
return uid_to_name(getuid());
}
+#endif // 0
int get_user_creds(
const char **username,
return ret;
}
+#if 0 /// UNNEEDED by elogind
int in_gid(gid_t gid) {
gid_t *gids;
int ngroups_max, r, i;
*_s = s;
return 0;
}
+#endif // 0
int reset_uid_gid(void) {
return 0;
}
+#if 0 /// UNNEEDED by elogind
int take_etc_passwd_lock(const char *root) {
struct flock flock = {
return fd;
}
+#endif // 0