From bac5345914ff4e2dbdaa94aff9682d754f35f35a Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 13 Dec 2007 21:36:25 +0000 Subject: [PATCH] (redir_authorized, doexecute): Change diagnostics to talk about batch files instead of script files, to match info execute. --- src/client/servcmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/servcmd.c b/src/client/servcmd.c index 526c9345..a640bab4 100644 --- a/src/client/servcmd.c +++ b/src/client/servcmd.c @@ -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);