]> git.pond.sub.org Git - empserver/commit
client: Improve the client's messages
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 27 Dec 2015 14:54:10 +0000 (15:54 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 8 Jul 2017 17:17:07 +0000 (19:17 +0200)
commita2f6ea968c3f5a84d0bd5aef7f15aa39b088db18
tree5ad06cabb91ef06ba2a04da8bbf82e4c327a7071
parent8fe0221634b69e3caf22495bb440772830e12630
client: Improve the client's messages

Use a "Warning: " prefix for server output violating the protocol and
for rogue redirections and executes.  Don't shout "WARNING!"

In redir_authorized(), check for server issues (conflicting
redirections, rogue redirections and executes) before enforcing
restrictions (restricted mode, executing batch file), so server issues
aren't masked.

Surprisingly, popen() may not set errno on failure.  Avoid reporting a
bogus errno in dopipe().

doexecute() complains about an "execute file".  We call that a "batch
file" elsewhere.  Reword for consistency.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/client/servcmd.c