From 7c89f2d5cd15fa15024a352aa7fedb9524b5e4c6 Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Thu, 18 Jun 2015 08:07:52 +0100 Subject: 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 --- scripts/vyos-strip-config.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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; -- cgit v1.2.3