login_class.c (116344) | login_class.c (121193) |
---|---|
1/*- 2 * Copyright (c) 1996 by 3 * Sean Eric Fagan <sef@kithrup.com> 4 * David Nugent <davidn@blaze.net.au> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, is permitted provided that the following conditions --- 9 unchanged lines hidden (view full) --- 18 * 4. Absolutely no warranty of function or purpose is made by the authors. 19 * 5. Modifications may be freely made to this file providing the above 20 * conditions are met. 21 * 22 * High-level routines relating to use of the user capabilities database 23 */ 24 25#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1996 by 3 * Sean Eric Fagan <sef@kithrup.com> 4 * David Nugent <davidn@blaze.net.au> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, is permitted provided that the following conditions --- 9 unchanged lines hidden (view full) --- 18 * 4. Absolutely no warranty of function or purpose is made by the authors. 19 * 5. Modifications may be freely made to this file providing the above 20 * conditions are met. 21 * 22 * High-level routines relating to use of the user capabilities database 23 */ 24 25#include <sys/cdefs.h> |
26__FBSDID("$FreeBSD: head/lib/libutil/login_class.c 116344 2003-06-14 18:42:37Z markm $"); | 26__FBSDID("$FreeBSD: head/lib/libutil/login_class.c 121193 2003-10-18 10:04:16Z markm $"); |
27 28#include <sys/types.h> 29#include <sys/stat.h> 30#include <sys/time.h> 31#include <sys/resource.h> 32#include <sys/mac.h> 33#include <sys/rtprio.h> 34#include <errno.h> --- 177 unchanged lines hidden (view full) --- 212 ++vars; 213 } 214 215 /* 216 * If we're not processing paths, then see if there is a setenv list by 217 * which the admin and/or user may set an arbitrary set of env vars. 218 */ 219 if (!paths) { | 27 28#include <sys/types.h> 29#include <sys/stat.h> 30#include <sys/time.h> 31#include <sys/resource.h> 32#include <sys/mac.h> 33#include <sys/rtprio.h> 34#include <errno.h> --- 177 unchanged lines hidden (view full) --- 212 ++vars; 213 } 214 215 /* 216 * If we're not processing paths, then see if there is a setenv list by 217 * which the admin and/or user may set an arbitrary set of env vars. 218 */ 219 if (!paths) { |
220 char **set_env = login_getcaplist(lc, "setenv", ","); | 220 const char **set_env = login_getcaplist(lc, "setenv", ","); |
221 222 if (set_env != NULL) { 223 while (*set_env != NULL) { 224 char *p = strchr(*set_env, '='); 225 226 if (p != NULL) { /* Discard invalid entries */ 227 char *np; 228 --- 207 unchanged lines hidden --- | 221 222 if (set_env != NULL) { 223 while (*set_env != NULL) { 224 char *p = strchr(*set_env, '='); 225 226 if (p != NULL) { /* Discard invalid entries */ 227 char *np; 228 --- 207 unchanged lines hidden --- |