Lines Matching refs:script

53 static int	do_exec(int update, char *script, char *output,
78 * This function creates a working copy of the checkinstall script.
83 * script or NULL
87 dup_chkinstall(char *script)
94 /* determine length for destination script path */
98 /* allocate storage to hold destination script path */
105 /* create destination script path */
115 /* make copy of script */
117 r = copyf(script, dstpath, (time_t)0);
119 progerr(ERR_CANNOT_COPY, script, dstpath);
123 /* Make the copy of the script readable by all */
219 * Execute the request script if present assuming the response file
223 reqexec(int update, char *script, int non_abi_scripts,
229 * determine which alternative user to execute the request script as
245 * If we can't get to the the script or the response file, skip this.
247 if (access(script, F_OK) != 0 || respfile_ro)
278 return (do_exec(update, script, resppath, REQ_STDIN, req_user));
282 chkexec(int update, char *script)
318 return (do_exec(update, script, resppath, CHK_STDIN, CHK_USER_ALT));
322 do_exec(int update, char *script, char *output, char *inport, char *alt_user)
334 * Determine which user to run the request script as:
335 * - if CHK_USER is a valid user, run the script as CHK_USER
336 * - otherwise, if alt_user is a valid user, run the script
353 * Determine which group to run the request script as:
354 * - If CHK_GRP is a valid group, run the script as CHK_GRP
366 echoDebug(DBG_DO_EXEC_REQUEST_USER, script, output, uname, instuid,
372 * Copy the checkinstall script to tmpdir in case parent directories
377 tmp_script = strdup(script);
378 } else if ((tmp_script = dup_chkinstall(script)) == NULL) {
379 /* Use the original checkinstall script */
380 tmp_script = strdup(script);