diff options
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | pingd | 11 |
2 files changed, 11 insertions, 2 deletions
@@ -1,6 +1,8 @@ Changes in version - 2004 * Have new disable and enable commands which are shortcut for set pingit=off showit=off fetch=off and =on respectively. + * Accept show=, ping=, and fetchit= in addition to their real + names in set. Changes in version 2.1.3 - 2004-04-20 * Improvements to pingd.conf(5) by Colin. @@ -405,8 +405,15 @@ sub command_set(@) { my @argv = @_; my @settings; - while (scalar @argv && $argv[0] =~ /^(showit|pingit|fetch)=(on|off)$/) { - push @settings, $argv[0]; + while (scalar @argv && $argv[0] =~ /^(show(?:it)?|ping(?:it)?|fetch(?:it))=(on|off)$/) { + $name = $1; + $value = $2; + + $name = 'showit' if ($name eq 'show'); + $name = 'pingit' if ($name eq 'ping'); + $name = 'fetch' if ($name eq 'fetchit'); + + push @settings, "$name=$value"; shift @argv; }; |