Lines Matching defs:run_dir
641 char *run_dir = "/var/run/in.lpd";
654 run_dir = optarg;
666 if (run_dir != NULL) { /* setup the run_dir */
667 (void) mkdir(run_dir, 0700);
669 (void) chown(run_dir, pw->pw_uid, pw->pw_gid);
680 if (run_dir != NULL) /* move to the run_dir */
681 if (chdir(run_dir) < 0) {
682 syslog(LOG_DEBUG, "failed to chdir(%s)", run_dir);