summaryrefslogtreecommitdiff
path: root/utils/git-testament.pl
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-07-07 10:14:44 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-07-07 10:14:44 +0100
commit7ae14f77a202d09d9cd7d4dd62d126e66d0591b6 (patch)
tree0bcf4d51abca988be24ac73d3321cd366235f247 /utils/git-testament.pl
parentb085eab6b057a1d4bc5ca2f4a79321b3425a65ee (diff)
downloadnetsurf-7ae14f77a202d09d9cd7d4dd62d126e66d0591b6.tar.gz
netsurf-7ae14f77a202d09d9cd7d4dd62d126e66d0591b6.tar.bz2
Ensure backslashes are escaped in the GECOS string. Fixes a warning when building under Windows.
Diffstat (limited to 'utils/git-testament.pl')
-rw-r--r--utils/git-testament.pl1
1 files changed, 1 insertions, 0 deletions
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;
}