(redir_authorized, doexecute): Change diagnostics to talk about batch

files instead of script files, to match info execute.
This commit is contained in:
Markus Armbruster 2007-12-13 21:36:25 +00:00
parent e357e05115
commit bac5345914

View file

@ -170,7 +170,7 @@ redir_authorized(char *arg, char *attempt, int expected)
size_t seen = seen_input(arg);
if (executing) {
fprintf(stderr, "Can't %s in a script\n", attempt);
fprintf(stderr, "Can't %s in a batch file\n", attempt);
return 0;
}
@ -255,7 +255,7 @@ doexecute(char *p)
{
int fd;
if (!redir_authorized(p, "execute script file", 1))
if (!redir_authorized(p, "execute batch file", 1))
return -1;
p = fname(p);