]> git.pond.sub.org Git - empserver/commitdiff
(redir_authorized, doexecute): Change diagnostics to talk about batch
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 13 Dec 2007 21:36:25 +0000 (21:36 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 13 Dec 2007 21:36:25 +0000 (21:36 +0000)
files instead of script files, to match info execute.

src/client/servcmd.c

index 526c934504db9b620bc888c256cfc3aec1e357bc..a640bab4226b3c95bfbbfd691e3012092282fd58 100644 (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);