From 7ae14f77a202d09d9cd7d4dd62d126e66d0591b6 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 7 Jul 2012 10:14:44 +0100 Subject: Ensure backslashes are escaped in the GECOS string. Fixes a warning when building under Windows. --- utils/git-testament.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'utils/git-testament.pl') diff --git a/utils/git-testament.pl b/utils/git-testament.pl index 5d1586bed..dc6301b50 100644 --- a/utils/git-testament.pl +++ b/utils/git-testament.pl @@ -103,6 +103,7 @@ my %userinfo; # The information about the current user my $gecos = $pwent[6]; $gecos =~ s/,.+//g; $gecos =~ s/"/'/g; + $gecos =~ s/\\/\\\\/g; $userinfo{GECOS} = $gecos; } -- cgit v1.2.3