version 1.2.2.1, 2011/10/09 18:58:44
|
version 1.2.2.2, 2011/10/09 21:45:44
|
Line 274 Run(char **argv)
|
Line 274 Run(char **argv)
|
int |
int |
main(int argc, char **argv) |
main(int argc, char **argv) |
{ |
{ |
char ch, *str, szCfg[MAXPATHLEN], **pp, flg = 0; | char ch, *str, *wrk, szCfg[MAXPATHLEN], **pp, flg = 0; |
struct passwd *pass; |
struct passwd *pass; |
struct group *grp; |
struct group *grp; |
FILE *f; |
FILE *f; |
Line 328 main(int argc, char **argv)
|
Line 328 main(int argc, char **argv)
|
case 'C': |
case 'C': |
if (chroot(optarg) == -1) |
if (chroot(optarg) == -1) |
Err("Error:: chroot to dir"); |
Err("Error:: chroot to dir"); |
|
if ((str = getenv("PATH_TRANSLATED"))) |
|
if ((wrk = strstr(str, optarg))) |
|
setenv("PATH_TRANSLATED", str + strlen(optarg), 42); |
break; |
break; |
case 'v': |
case 'v': |
Verbose++; |
Verbose++; |