search for: maxspoolsize

Displaying 1 result from an estimated 1 matches for "maxspoolsize".

2006 Sep 18
1
BSD Auth: set child environment variables requested by login script [PATCH]
...ronment variables starting with "X_BSD_AUTH". + * After the call to auth_close(), these variables are in the + * current environment if the login script has requested them. + */ +void +bsdauth_child_set_env(char ***envp, u_int *envsizep) +{ + extern char **environ; + char name[8*1024]; /* MAXSPOOLSIZE in auth_session_t */ + char *value; + u_int i, namelen; + + for (i = 0; environ[i] != NULL; i++) { + namelen = strcspn(environ[i], "="); + if (namelen + 1 > sizeof(name)) + continue; + snprintf(name, namelen + 1, "%s", environ[i]); + value = environ[i] + namelen + 1; +...