Lines Matching defs:cwd
260 char cwd[AP_MAXPATH]; /* current working directory */
496 if (getcwd(cwd, AP_MAXPATH) == NULL) {
505 ((chdir(cwd)) != 0)) {
513 ((chdir(cwd)) != 0)) {
519 if ((strncmp(cwd, dwd, strlen(dwd))) != 0) {
520 log_err("command not in docroot (%s/%s)\n", cwd, cmd);
525 * Stat the cwd and verify it is a directory, or error out.
527 if (((lstat(cwd, &dir_info)) != 0) || !(S_ISDIR(dir_info.st_mode))) {
528 log_err("cannot stat directory: (%s)\n", cwd);
533 * Error out if cwd is writable by others.
536 log_err("directory is writable by others: (%s)\n", cwd);
552 log_err("file is writable by others: (%s/%s)\n", cwd, cmd);
560 log_err("file is either setuid or setgid: (%s/%s)\n", cwd, cmd);
566 * the name/group of the cwd or the program.
585 log_err("file has no execute permission: (%s/%s)\n", cwd, cmd);