Displaying 1 result from an estimated 1 matches for "euidstr".
Did you mean:
uuidstr
2006 Feb 10
0
OpenSSH ControlAllowUsers, et al Patch
...ientloop.c
===================================================================
--- clientloop.c (revision 15802)
+++ clientloop.c (revision 15803)
@@ -675,6 +675,84 @@
xfree(cctx);
}
+
+static int
+client_control_grant(int client_fd)
+{
+ struct passwd *epw = 0;
+ struct group *egr = 0;
+ char euidstr[48]; /* Sufficient for 2^128 in decimal ascii */
+ char egidstr[48]; /* Sufficient for 2^128 in decimal ascii */
+ uid_t euid;
+ gid_t egid;
+ u_int i;
+
+ if (getpeereid(client_fd, &euid, &egid) < 0) {
+ error("%s getpeereid failed: %s", __func__, strerror(errno));
+ return...