From b565e19b831a92a054e9281624f51482d3d9566e Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 6 Apr 2009 21:20:57 -0700 Subject: Check that username is valid --- templates/system/syslog/user/node.def | 2 ++ 1 file changed, 2 insertions(+) (limited to 'templates/system') diff --git a/templates/system/syslog/user/node.def b/templates/system/syslog/user/node.def index 36799b4c..805abd6a 100644 --- a/templates/system/syslog/user/node.def +++ b/templates/system/syslog/user/node.def @@ -1,6 +1,8 @@ tag: type: txt help: Set logging to specific user's terminal +syntax:expression: pattern $VAR(@) "^[a-zA-Z_][a-zA-Z0-9_-]*$" + ; "invalid user name $VAR(@)" commit:expression: $VAR(./@/facility/@@) != ""; "At least one facility must be configured to log messages to user $VAR(./@)" comp_help: Possible completions: Send log messages to this user's terminal -- cgit v1.2.3