Lines Matching refs:q

229 	char	*q;  in newstr()  local
234 if ((q = strdup(p)) == NULL) in newstr()
237 return (q); in newstr()
258 char *q = strtok(NULL, toks); in read_userconfig() local
266 printf("Got unknown kwd `%s' val=`%s'\n", p, q ? q : ""); in read_userconfig()
268 printf("Got kwd[%s]=%s\n", p, q); in read_userconfig()
272 config.default_password = passwd_val(q, 1); in read_userconfig()
275 config.reuse_uids = boolean_val(q, 0); in read_userconfig()
278 config.reuse_gids = boolean_val(q, 0); in read_userconfig()
281 config.nispasswd = (q == NULL || !boolean_val(q, 1)) in read_userconfig()
282 ? NULL : newstr(q); in read_userconfig()
285 config.dotdir = (q == NULL || !boolean_val(q, 1)) in read_userconfig()
286 ? NULL : newstr(q); in read_userconfig()
289 config.newmail = (q == NULL || !boolean_val(q, 1)) in read_userconfig()
290 ? NULL : newstr(q); in read_userconfig()
293 config.logfile = (q == NULL || !boolean_val(q, 1)) in read_userconfig()
294 ? NULL : newstr(q); in read_userconfig()
297 config.home = (q == NULL || !boolean_val(q, 1)) in read_userconfig()
298 ? "/home" : newstr(q); in read_userconfig()
301 modeset = setmode(q); in read_userconfig()
302 config.homemode = (q == NULL || !boolean_val(q, 1)) in read_userconfig()
307 config.shelldir = (q == NULL || !boolean_val(q, 1)) in read_userconfig()
308 ? "/bin" : newstr(q); in read_userconfig()
311 for (i = 0; i < _UC_MAXSHELLS && q != NULL; i++, q = strtok(NULL, toks)) in read_userconfig()
312 system_shells[i] = newstr(q); in read_userconfig()
318 config.shell_default = (q == NULL || !boolean_val(q, 1)) in read_userconfig()
319 ? (char *) bourne_shell : newstr(q); in read_userconfig()
322 q = unquote(q); in read_userconfig()
323 config.default_group = (q == NULL || !boolean_val(q, 1) || GETGRNAM(q) == NULL) in read_userconfig()
324 ? NULL : newstr(q); in read_userconfig()
327 while ((q = strtok(NULL, toks)) != NULL) { in read_userconfig()
330 sl_add(config.groups, newstr(q)); in read_userconfig()
334 config.default_class = (q == NULL || !boolean_val(q, 1)) in read_userconfig()
335 ? NULL : newstr(q); in read_userconfig()
338 if ((q = unquote(q)) != NULL) { in read_userconfig()
339 config.min_uid = strtounum(q, 0, in read_userconfig()
343 " ignoring", q); in read_userconfig()
347 if ((q = unquote(q)) != NULL) { in read_userconfig()
348 config.max_uid = strtounum(q, 0, in read_userconfig()
352 " ignoring", q); in read_userconfig()
356 if ((q = unquote(q)) != NULL) { in read_userconfig()
357 config.min_gid = strtounum(q, 0, in read_userconfig()
361 " ignoring", q); in read_userconfig()
365 if ((q = unquote(q)) != NULL) { in read_userconfig()
366 config.max_gid = strtounum(q, 0, in read_userconfig()
370 " ignoring", q); in read_userconfig()
374 if ((q = unquote(q)) != NULL) { in read_userconfig()
375 config.expire_days = strtonum(q, 0, in read_userconfig()
379 " '%s'; ignoring", q); in read_userconfig()
383 if ((q = unquote(q)) != NULL) { in read_userconfig()
384 config.password_days = strtonum(q, 0, in read_userconfig()
388 " '%s'; ignoring", q); in read_userconfig()