diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2015-06-18 08:07:52 +0100 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2015-06-18 08:07:52 +0100 |
commit | 53b091e72017a6a1209aaac6a76728fb08f90665 (patch) | |
tree | 5f6c69a086ed14e773634984335ec59df3f35f39 /scripts/vyos-strip-config.pl | |
parent | 49ce91e652525f41a00e7085b746c774e37428cb (diff) | |
download | vyatta-op-53b091e72017a6a1209aaac6a76728fb08f90665.tar.gz vyatta-op-53b091e72017a6a1209aaac6a76728fb08f90665.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
Diffstat (limited to 'scripts/vyos-strip-config.pl')
-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 ad00a5b..5b0d8d9 100644 --- a/scripts/vyos-strip-config.pl +++ b/scripts/vyos-strip-config.pl @@ -140,7 +140,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; |