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