From 53b091e72017a6a1209aaac6a76728fb08f90665 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 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; -- cgit v1.2.3