Lines Matching refs:resppath
56 static char *resppath = NULL;
136 * file. It changes the resppath pointer to point to the working copy.
148 resppath = mktemp(path);
149 if (resppath == NULL) {
156 r = copyf(tpath, resppath, (time_t)0);
158 progerr(ERR_NORESPCOPY, tpath, resppath);
167 if (chmod(resppath, 0644) != 0) {
168 progerr(ERR_CHMOD, resppath);
188 resppath = mktemp(path);
189 if (resppath == NULL) {
202 resppath = path;
215 return (resppath);
262 if ((access(resppath, F_OK) == 0) && unlink(resppath)) {
263 progerr(ERR_RMRESP, resppath);
272 if ((fd = open(resppath, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) < 0) {
273 progerr(ERR_CRERESP, resppath);
278 return (do_exec(update, script, resppath, REQ_STDIN, req_user));
294 if ((access(resppath, F_OK) != 0)) {
295 progerr(ERR_ACCRESP, resppath);
310 fd = open(resppath, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644);
312 progerr(ERR_CRERESP, resppath);
318 return (do_exec(update, script, resppath, CHK_STDIN, CHK_USER_ALT));