Displaying 1 result from an estimated 1 matches for "num_control_allow_us".
2006 Feb 10
0
OpenSSH ControlAllowUsers, et al Patch
...eof euidstr, "%lu", (u_long)euid)) {
+ error("%s uid too high", __func__);
+ return -1;
+ }
+
+ if ((int)sizeof egidstr <= snprintf(egidstr, sizeof egidstr, "%lu", (u_long)egid)) {
+ error("%s gid too high", __func__);
+ return -1;
+ }
+
+ if ((options.num_control_allow_users || options.num_control_deny_users)
+ && !(epw = getpwuid(euid))) {
+ error("%s getpwuid failed: %s", __func__, strerror(errno));
+ return -1; /* Fail, otherwise we might miss a deny pattern. */
+ }
+
+ if ((options.num_control_allow_groups || options.num_control_deny_groups)...