diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2015-06-18 08:07:52 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-08-12 03:38:08 +0200 |
commit | 7c89f2d5cd15fa15024a352aa7fedb9524b5e4c6 (patch) | |
tree | 0a0f601627269d3544e19dc4800c452180dbaa3d | |
parent | 723cb4c8cd9428cc624ed23af43fe2cd518a4c9f (diff) | |
download | vyatta-op-7c89f2d5cd15fa15024a352aa7fedb9524b5e4c6.tar.gz vyatta-op-7c89f2d5cd15fa15024a352aa7fedb9524b5e4c6.zip |
vyatta-op: strip-private removes "user" rather than actual username
The strip-private pipe command removes the user node entry rather than
the actual username.
Bug #567 http://bugzilla.vyos.net/show_bug.cgi?id=567
-rw-r--r-- | scripts/vyos-strip-config.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyos-strip-config.pl b/scripts/vyos-strip-config.pl index 2e27d51..a1e2f23 100644 --- a/scripts/vyos-strip-config.pl +++ b/scripts/vyos-strip-config.pl @@ -147,7 +147,7 @@ $input =~ s/ (([0-9a-f]{1,4}\:){2})(\S+)/ xxxx:xxxx:$3/gi if $stripIP; $input =~ s/(host-name|domain-name|domain-search) \S+/$1 xxxxxx/g if $stripHostname; # Strip user-names -$input =~ s/(user|username|user-id|login|full-name) \S+/$1 xxxxxx/g if $stripUsernames; +$input =~ s/(user|username|user-id|full-name) \S+/$1 xxxxxx/g if $stripUsernames; # Strip DHCP static-mapping and shared network names $input =~ s/(shared-network-name|static-mapping) \S+/$1 xxxxxx/g if $stripDHCP; |