Lines Matching defs:cwd
258 char cwd[AP_MAXPATH]; /* current working directory */
500 if (getcwd(cwd, AP_MAXPATH) == NULL) {
509 ((chdir(cwd)) != 0)) {
517 ((chdir(cwd)) != 0)) {
523 if ((strncmp(cwd, dwd, strlen(dwd))) != 0) {
524 log_err("command not in docroot (%s/%s)\n", cwd, cmd);
529 * Stat the cwd and verify it is a directory, or error out.
531 if (((lstat(cwd, &dir_info)) != 0) || !(S_ISDIR(dir_info.st_mode))) {
532 log_err("cannot stat directory: (%s)\n", cwd);
537 * Error out if cwd is writable by others.
540 log_err("directory is writable by others: (%s)\n", cwd);
556 log_err("file is writable by others: (%s/%s)\n", cwd, cmd);
564 log_err("file is either setuid or setgid: (%s/%s)\n", cwd, cmd);
570 * the name/group of the cwd or the program.
589 log_err("file has no execute permission: (%s/%s)\n", cwd, cmd);