version 1.1, 1999/11/18 16:29:01 |
version 1.2, 2000/01/28 01:10:20 |
|
|
#endif /* !STDC_HEADERS */ |
#endif /* !STDC_HEADERS */ |
|
|
#ifndef lint |
#ifndef lint |
static const char rcsid[] = "$Sudo: find_path.c,v 1.94 1999/10/07 21:20:57 millert Exp $"; |
static const char rcsid[] = "$Sudo: find_path.c,v 1.95 2000/01/27 04:31:58 millert Exp $"; |
#endif /* lint */ |
#endif /* lint */ |
|
|
/* |
/* |
|
|
* Grab PATH out of the environment (or from the string table |
* Grab PATH out of the environment (or from the string table |
* if SECURE_PATH is in effect) and make a local copy. |
* if SECURE_PATH is in effect) and make a local copy. |
*/ |
*/ |
if (def_str(I_SECURE_PATH)) |
if (def_str(I_SECURE_PATH) && !user_is_exempt()) |
path = def_str(I_SECURE_PATH); |
path = def_str(I_SECURE_PATH); |
else if ((path = getenv("PATH")) == NULL) |
else if ((path = getenv("PATH")) == NULL) |
return(NOT_FOUND); |
return(NOT_FOUND); |